0

I am trying to add a WYSIWYG editor in Magento 2 while creating a custom module, but I keep getting a full-page editor instead. Here is a snippet of my code

$fieldset->addField( 'content', 'editor', ['name' =>'content', 'label'=>__('Content'), 'title'=>__('Content'), 'row'=>'15', 'wysiwyg'=>true, 'required'=>true, 'config'=>$this->_wysiwygConfig=>getConfig() );

However, the result below enter image description here

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.