javascript - Detect Plugin or Command Existence in TinyMCE -


does tinymce's api support method finding whether or not plugin active, or better, whether given command registered? specifically, creating plugin call mceautoresize command @ periods, in order prefer detect whether command exists or not. know can searching plugins parameter, wanted know if there api-supported way (to limit chances plugin break on tinymce update).

to see if plugin or command active there seems no real api functionality. can see if plugin loaded use

var plugin_is_usable = tinymce.get(editor_id).plugins.pluginname; 

to check if given command (in case mceautoresize) available may use

var mceautoresize_is_usable = tinymce.get(editor_id).execcommands.mceautoresize; 

it not ever change in tinymce.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -