开发者

Custom Dojo RichTextEditor Plugin

Has anyone out there ever tried to create a plugin for the dojo rich text editor? I am implementing the editor in Dojo version 1.6 and am having a real crap time trying to get my plugins to work. F开发者_如何学编程rom what I can tell I've done everything correctly, however, my icon in the tooldbar shows up "disabled".

I even went so far as to try this tutorial but, I get the same thing - a toolbar button that's disabled.


It seems that all buttons are disabled by default, so you'll need to override the updateState function of the plugin to enable the button. To only enable it, only add the function to the plugin. It does not need to do anything. This function will be called everytime the editor's state changes. Then you could check if your button should be enabled/disabled and enable/disable it accordingly.


I think you were using an indirect reference to a literal that didn't exist. I added a comment to the blog about this. Thanks for the link to the blog.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜