Hi Fady, Fady Matar wrote:
I have tried to get the dependency for the xwiki-web-gwt-wysiwyg-client module but I couldn't find it anywhere, is this a new split of the wysiwyg module? for example I would have wanted to check out xwiki-web-gwt-wysiwyg-client version 2.2 by adding it as a maven dependency as follows:
<dependency> <groupId>com.xpn.xwiki.platform</groupId> <artifactId>xwiki-gwt-wysiwyg-client</artifactId>
<version>2.2</version>
Yes, xwiki-web-gwt-wysiwyg-client is a new split of the wysiwyg module, done only on trunk so you have to use version 2.3-SNAPSHOT for now, at least until we release 2.3M1. If you don't want to be affected by changes happening daily on trunk, you can build locally xwiki-web-gwt-wysiwyg-client and then build your project offline using maven's -o flag.
</dependency>
but I couldn't find it anywhere in the xwiki maven repository.
So from what I understand now is that I have to build the module, add it as a dependency in my maven project and include it in my gwt sample project.
Yes, but you'll have to use the 2.3-SNAPSHOT version for now. Hope this helps, Marius
Thanks for the assistance, Fady
On 2/19/10, Fady Matar <[email protected]> wrote:
Thanks for the information this was helpful
Regards, Fady
On Fri, Feb 19, 2010 at 5:43 PM, Marius Dumitru Florea < [email protected]> wrote:
Hi Fady,
So far we haven't written a demo of the WYSIWYG editor outside of XWiki but it shouldn't be hard to write one:
* Create a demo GWT-Maven project * Add a dependency on xwiki-web-gwt-wysiwyg-client (
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-clie... ) * Inherit the WYSIWYG GWT module in your own GWT module descriptor ** Use the same entry point as the WYSIWYG GWT module, which publishes a JavaScript API you can use to instantiate the editor, or ** Use your own entry point and instantiate the editor in GWT code
The only limitation is that you won't be able to use the "switch-to-source" feature (i.e. the tabbed version of the editor) and XWiki-specific plugins (link, image, macro and importer) unless you implement the GWR-RPC services currently implemented in
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-serv... .
If you choose to use the same entry point, the JavaScript API that is being publish is described at
http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule#HWysiwygEdi... . You can find the configuration parameters at
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WysiwygEditor#HConfigura... . Note that we have written a custom GWT script loader (
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-clie... ) which allows us to write:
Wysiwyg.onModuleLoad(function() { // code here });
This way we know for sure that when we try to create a new WYSIWYG editor the GWT module was loaded. The easiest way to create the editor without the special loader is to use a button and to place the code on click.
Hope this helps, Marius
Fady Matar wrote:
I'm aiming to run the wysiwyg component as a standalone GWT for a number of reasons: 1. To be able to test the component without it being hooked up to XWiki 2. To be able to expand it or add more features to it as required.
I would like to get all the possible assistance in achieving that task so I can share it with others and probably update the documentation if it's beneficial to others.
Cheers, Fady _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs