[Dojo-interest] re moving plugins (or extra plugins) from dijit.editor
Rob Weiss
j105.rob at gmail.com
Fri Jun 18 07:46:16 EDT 2010
The plugins are stored in "private" array called _plugins. Looks like you'd
have to extend the editor to create a method to remove the plugin from the
array. And it looks like each plugin inherits _editor._Plugin which has a
destroy method. If the plugin contains more than one button ( a composite
plugin) it looks like you might be out of luck; since you can't just turn a
button off, unless you write your own plugin. I am not sure which plugin
contains each of those buttons; so I have not looked into it any further.
On Fri, Jun 18, 2010 at 7:08 AM, Chris Fleischmann <
chris.fleischmann at sun.com> wrote:
>
> Hello folks, is there an easy way to remove plugin's from the dijit.editor
> post creation?
>
> ie., say I want to remove "cut" and "bold" plugins programmatically? I see
> there is a function for addplugin, but what about removing?
>
> Is it a case of some how creating a new toolbar and attaching that to the
> editor?
>
> I am using dojo 1.4.3.
>
> Thanks in advance,
>
> Chris
>
>
> --
> View this message in context:
> http://old.nabble.com/removing-plugins-%28or-extra-plugins%29-from-dijit.editor-tp28924882p28924882.html
> Sent from the Dojo mailing list archive at Nabble.com.
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://docs.dojocampus.org
> Dojo-interest at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20100618/656fb979/attachment.htm
More information about the Dojo-interest
mailing list