javascript - Way to check whether TinyMCE is active in WordPress -


I am working on a plugin, when TinyEEE is in use as a visual editor, then to include the text The TinyMeE command uses the body content editing field at present, it just works by running the command. If this works, TinyMCE is active and if not, then I have custom JS to work with the HTML Editor.

My question, though: there is no way to check whether TinyMCE is active or not just the command is running and failing if it fails?

And ... I answered the question for me, conditionally you want to test for:

  is_tinyMCE_active = false; If (typef (tnmeie)! = "Undefined") {If (tinmieactive editor == faucet} TNMEEactive editor .Isaid (=!) = {Tinymccap = true; }}  

The trick is that tinyMCE.activeEditor returns zero when TinyMCE is not activated when you switch back to the HTML editor mode when it is not executed You can use the isHidden () method to make sure.

This is poorly documented on the TinyMCE website forums.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -