How to dynamically load & unload a TinyMCE Plugin

Posted by Matt Simpson on Stack Overflow See other posts from Stack Overflow or by Matt Simpson
Published on 2009-12-06T19:25:03Z Indexed on 2010/06/11 9:12 UTC
Read the original article Hit count: 336

Filed under:

Does anyone know if there is a way I can dynamically load and unload a TinyMCE plugin after TinyMCE has already been loaded? Specifically, I'm thinking about asking the user whether or not they wish to load the fullpage plugin using perhaps a radio button or something above TinyMCE:

<input type="radio" name="fullpage" value="enabled"  /> Enable Fullpage Plugin<br />
<input type="radio" name="fullpage" value="disabled" /> Disable Fullpage Plugin<br />
<textarea name="tinymce" id="tinymce">...</textarea>

I suppose I could destroy the original instance and load a new config (one for enabled / one for disabled), but it seems as though there should be a more elegant way of loading and unloading plugins.

© Stack Overflow or respective owner

Related posts about tinymce