In this case you don't need to modify any JavaScript file. You can
write a JavaScript extension [1], load it only on edit action and use
the WYSIWYG editor API [2] to access the editor and inject the buttons
on the tool bar.

Hope this helps,
Marius

[1] 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial#HMinimalJavaScripteXtension
[2] 
http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#HJavaScriptAPI

On Mon, May 28, 2012 at 5:25 PM, Geo Du <[email protected]> wrote:
> Hi, all,
>
> I am trying to add buttons on the wysiwyg or inline form editor toolbar, I
> checked the wysiwyg gwt source code, and the wysiwyg.js file, I am more
> toward add javascript code in wysiwyg.js file to add javascript code for
> buttons on the toolbar, instead of adding java code for the plugin, any
> suggestions?
>
> Thanks in advance
>
> Dave
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to