jQuery-gridmanager icon indicating copy to clipboard operation
jQuery-gridmanager copied to clipboard

Gridmanager throws error with default options and tinyMCE

Open madc opened this issue 10 years ago • 2 comments

The gridmanager throws the following error, when tinyMCE is present on the page and tinymce.config is not overwritten.

TypeError: t.plugins.split is not a function

The problem here seems to be the default optinos for tinyMCE in gridmanager.js on line 1527. Here, tinymce.config.plugins is preset with an array instead a string. Removing [ and ] should solve this issue.

madc avatar Jul 29 '15 09:07 madc

Which version of TinyMCE? I've only tested against 4.0

neokoenig avatar Jul 29 '15 09:07 neokoenig

The TinyMCE version is 4.0.12, jQuery version is 1.11.0. In the documentation it says, TinyMCE expects the plugins to be "a comma or space seperated string, or an array of strings".

I just saw, that it is working on your demo, so maybe this is a problem with running TinMCE < 4.1? Anyway removing the brackets should have no effect on newer versions of the editor and fix it for older ones.

madc avatar Jul 29 '15 09:07 madc