Consider I have a plugin “fooPlugin” I attach it to an element like $(element).fooPlugin();
But later, i want to deactivate the plugin. How to deactivate the plugin? Currently, I am using jwysiwyg plugin
I am creating a editor with jwysiwyg plugin and I need to enable the editor when a button is clicked and remove the editor when another button is clicked
Please help!
There can not be a general method to detach a plugin, who knows what that plugin might have done to nodes, so only that plugin can detach it self e.g.
So see
jwysiwygdocs or ask them, looks like they haven’t implemented any destroy or remove methods.