when editing product there is wysiwyg button like this wysiwyg editor button
this button will popup wysiwyg editor when you click it and the value goes to the field text with html tag, i've tried the solution in here, but it didnt work at all
is there a way to add it to one of my fieldset that goes like this
$fieldset->addField(
'custom_field',
'text',
array(
'name' => 'custom_field0',
'container_id' => 'attribute-custom0',
'placeholder' => $this->__('Custom Attribute Field'),
));
asked Jan 4, 2017 at 7:23
Idham Choudry
2,8183 gold badges39 silver badges64 bronze badges
1 Answer 1
Try Below Code:
$fieldset->addField(
'custom_field',
'editor',
array(
'name' => 'custom_field0',
'container_id' => 'attribute-custom0',
'placeholder' => $this->__('Custom Attribute Field'),
'config' => Mage::getSingleton('cms/wysiwyg_config')->getConfig(),
'wysiwyg' => true,
));
answered Jan 4, 2017 at 7:34
Harshil Parekh
1,48317 silver badges32 bronze badges
-
@the field is showing wysiwyg editor but not the way i want, what i want is a button like image above to open wysiwyg editor in pop up modeIdham Choudry– Idham Choudry2017年01月04日 08:54:23 +00:00Commented Jan 4, 2017 at 8:54
-
pop up mode? than I think you need put jqeury for thatHarshil Parekh– Harshil Parekh2017年01月04日 09:35:51 +00:00Commented Jan 4, 2017 at 9:35
Explore related questions
See similar questions with these tags.
default
app/code/local/Namespace/Module/Helper/directory