I need to add the widget button to the WYSIWYG editors of some category attributes.
There are two questions on Stack Overflow with accepted answers:
- Magento: How to add the widget button to the WYSIWYG Products Editor
- Magento: Add Widget tool onto product and category WYSIWYG
The one problem: this solution doesn't work 100% (tested on EE 188.8.131.52 and CE 184.108.40.206).
What's the problem?
If you set the config entry
true (btw, you can do that by observing the event
cms_wysiwyg_config_prepare, that's better than rewriting or overwriting the helper block), the widget buttons are displayed. That's fine.
You can even use the "Insert Widget..." button outside the WYSIWYG Editor. That's good.
The problem is the widget button in the WYSIWYG editor: you can click on it, the widget manager opens but when you select a widget type, the configuration area doesn't open.
"HierarchyRequestError: Node cannot be inserted at the specified point in the hierarchy"
Even after debugging for some time I didn't find out how this can be fixed. Did somebody of you already solve that problem?