webguys-de / EasyTemplate

42 stars 13 forks source link

Can not disable WYSIWYG-editor of new areas #23

Open gfobe opened 8 years ago

gfobe commented 8 years ago

When I'm in the EasyTemplate content of a CMS page and add a new template having the WYSIWYG editor, I'm not able to disable the editor with Show/Hide editor. It activates again automatically. If I try this on a saved area, all works fine.

Magento 1.9.2.4 @ Firefox 44 Win7/64 & PHP5.6.11

timmeyy23 commented 7 years ago

I could confirm this bug.

gfobe commented 7 years ago

I investigated this issue, but with no solution.

When I press the toggle button, tinyMCE loads adds some JavaScripts to the header (You can see it, in Chrome Dev tools if you add a DOM breakpoint to changes of ). Here he will load some file /js/tiny_mce/plugins/magentowidget/editor_plugin.js because tinyMCEs baseURL is /js/tiny_mce .But the correct location for this plugin is /js/mage/adminhtml/wysiwyg/tiny_mce/plugins/magentowidget/editor_plugin.js as you can see it cms page edit. Something is not working correctly with the AddOnManager of tinyMCE or with the tinyMCE-configuration. But in the configuration out of Easytemplate PHP the paths are correct.

gfobe commented 6 years ago

Little workaround: copy /js/mage/adminhtml/wysiwyg/tiny_mce/plugins/magentowidget/editor_plugin.js to js/tiny_mce/plugins/magentowidget/editor_plugin.js