On Mon, Oct 5, 2009 at 00:50, Leon Wang <[email protected]> wrote: > Hi Everyone! > I have read this document "Writing GWT applications in XWiki" ( > http://dev.xwiki.org/xwiki/bin/view/Drafts/WritingGWTApplicationsInXWiki) > And I know how to develop GWT module for xwiki now. I also have read the > document "WYSIWYG Editor Module" ( > http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule). I > followed the instruction which tried to integrate the WYSIWYG editor(GWT > application) in wiki pages, and I put the following code in my wiki editor: > "{{html}} > <script type="text/javascript" src="XWikiWysiwyg.js"> alert('WYSIWYG code is > loaded!'); </script> <textarea id="demo"></textarea> <script > type="text/javascript"> Wysiwyg.onModuleLoad(function() { new > WysiwygEditor({hookId:'demo'}); alert('WYSIWYG code is loaded!'); }); > Wysiwyg.onModuleLoad(function() { editor = new WysiwygEditor({hookId: > 'demo'}); }); }); </script> {{/html}}" > > After saved, it only display a blank text area without any sign of WYSIWYG > editor, also there is no alart 'WYSIWYG code is loaded!' popup. Can you help > me figure it out what is wrong with it?
Note that it's generally better to put javascript part in a XWiki.JavaScriptExtension object and include it in the page. See http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial > > I am planing to develop a tree view using GWT to display Design Rationale > Element. Could you give me some ideas of after my development, how can I > embeded the GWT application into Xwiki pages and interact with the GWT > application? > > Thank you very much! > > Leon > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > -- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

