Paradox81ru / TinyMCE_v5_spoiler

The "Spoiler" plugin for the text WEB editor TinyMCE v5
0 stars 0 forks source link

Doesn't seem to work with Tiny MCE 6 #1

Open DedMaxim opened 1 year ago

DedMaxim commented 1 year ago

Doesn't seem to work with Tiny MCE 6. Tiny spits out an error on plugin load

Paradox81ru commented 1 year ago

I haven't tried version 6 yet, of course, I still have version 5 installed. But purely visually, the API doesn't seem to have changed. It should work. Check the plugin installation.

DedMaxim commented 1 year ago

I have downloaded the plugin, extracted "spoiler" folder out of it and pasted to "tiny/plugins/". Then I added all necessary info into the script:

However, I get an error on script load.

image

Do I need to somehow include "init_tinymce.js" file from the archive as well or do something with it?

Paradox81ru commented 1 year ago

No, the file is "_inittinymce.js" initializes tinymce, you already did it in your script "tinymce.init({...})" I have tried to upgrade tinymce to version 6 and started getting the same error. After all, 6 tinymce is not fully compatible with 5. Even the some native plugins of version 5 on 6 does not work. I'll try to figure out what has changed.

Paradox81ru commented 1 year ago

I've corrected something here, there seems to be no mistake. Since it turns out that the plugin for version 5 of tinymce and 6 are different, then it is necessary to publish the corrected plugin in a new branch. And now, unfortunately, I don't have time to finally check everything and issue a new branch. Therefore, I can only offer to download the corrected plugin from Yandex.disk at the link: https://disk.yandex.ru/d/QXz-XG4Y5cgXmw.

DedMaxim commented 1 year ago

Awesome. Thanks a lot!