supercode-tinymce-plugin icon indicating copy to clipboard operation
supercode-tinymce-plugin copied to clipboard

Incompatible with TinyMCE 6

Open Toutouwai opened this issue 1 year ago • 0 comments

Thanks for this plugin.

The readme says:

Supported on tinyMCE versions v5, v6 and v7.

When functioning in the normal (Custom View) mode the plugin attempts to use the data-mce-name attribute for proper functioning of the toolbar.

https://github.com/prathamVaidya/supercode-tinymce-plugin/blob/a692a27c991160248c59030b812cf5b2f124f7d5/supercode/plugin.js#L350-L366

But this attribute doesn't appear to be present on toolbar buttons in TinyMCE 6. One effect of this is that all toolbar buttons become disabled in code view and the supercode toolbar button can't be used to exit code view.

2024-12-03_111856

Toutouwai avatar Dec 02 '24 22:12 Toutouwai