anand-patel / oc-wysiwyg-editors

Wysiwyg Editors for October CMS
MIT License
27 stars 30 forks source link

Editor on Pages, Layouts, Partials is not working OctoberCMS 2 version #119

Open manearaluca-amoos opened 3 years ago

manearaluca-amoos commented 3 years ago

Hi, I made update on OctoberCMS 2 version and editor works only inside Blogs. I will try to make a debug by myself but also open this issue on your side maybe you already have a quick fix. Thank you.

webBook-cz commented 2 years ago

It is strange workaround, but if you install translate plugin, you can change editor in Blog, then

mkinternet commented 2 years ago

Quick fix by Sam Georges

Replace https://github.com/anand-patel/oc-wysiwyg-editors/blob/bad3d66e78df7a9619d2e9c2e21f0c6b4b3c91dd/Plugin.php#L222

With $field->type = $field->config['widget'] = $editor;

And https://github.com/anand-patel/oc-wysiwyg-editors/blob/bad3d66e78df7a9619d2e9c2e21f0c6b4b3c91dd/Plugin.php#L224

With $field->type = $field->config['widget'] = 'AnandPatel\WysiwygEditors\FormWidgets\Editor';