Ok, thanks very much for your help.
Dave
On Fri, Apr 6, 2012 at 6:50 AM, Marius Dumitru Florea <
mariusdumitru.florea(a)xwiki.com> wrote:
  On Fri, Apr 6, 2012 at 1:49 AM, du du
<dddu88(a)gmail.com> wrote:
  Hi, all,
 I am trying to add an addComments sub-menu item to image button from the
 menu bar of WYSIWYG editor, what it does is to add comments for an image
 inserted in the editor because I need to explain what each image is about
 after I put it in the editor, I checked the
 class:XWiki.WysiwygEditorConfigClass and the wysiwyg.js, I added a
 sub-menu in
 the WysiwygEditorConfigClass for image menu, but after that, I got lost,
 this sub-menu button is supposed to connect to a plugin to trigger java 
 to
  run I believe since it is a plugin and each
sub-menu like
 imageInsertAttached, imageInsertURL is a plugin, but I could not find the
 code where it calls a plugin, so how is the sub-menu button hooked to the
 plugin? when a user clicks on the submenu button in the editor (inline
 form) page, which javascript function gets called? 
 You can find here
https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwi…
 the code of the WYSIWYG content editor. For instance, the image
 plugin, which handles the image menu, is located here
https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwi…
 . The actual code that fills the image menu is
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
 .
 You should know that the WYSIWYG content editor is written using
 Google WebToolkit (GWT). The Java code is compiled into JavaScript at
 build time.
 Hope this helps,
 Marius
 Thanks very much in advance!!
 Dave
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users 
_______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users