I'm adding wysiwyg editor in admin custom form enter image description here

All displays good and working fine, but when I click on Insert variable I have an error: Uncaught ReferenceError: MagentovariablePlugin is not defined at HTMLButtonElement.onclick



Create below file in your module


Content for this file is..

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="editor"/>

And more information and most useful link :-

How to make field as WYSIWYG editor in system.xml in configuration?

Hope this help you

Thanks ...

| improve this answer | |
  • I tried to do it but it didn’t work... – gleboha Apr 30 at 21:02
  • you check attached link ??? – Mohit Patel Apr 30 at 21:04
  • I need to create app/code/Vendor/Module/Block/Adminhtml/System/Config/Form/Field/Editor.php file to my editor? I can't understand how to indicate path to this block from my fieldset – gleboha Apr 30 at 21:11
  • you add system.xml file ??? – Mohit Patel Apr 30 at 21:14
  • This file need to add editor to configuration page, but I'm need to add editor in custom form. Or I'm wrong? – gleboha Apr 30 at 21:16

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.