Marius and developers,

I've commited a working gwt 1.4 based wysiwyg editor module.

You need to take

https://svn.xwiki.org/svnroot/xwiki/xwiki-platform/web/branches/xwiki-web-gwt-gwt14/

and

https://svn.xwiki.org/svnroot/sandbox/wysiwyg/

You should put the wysiwyg under web/
The two files standard.pom.xml and web.pom.xml are web/standard/pom.xml and web/pom.xml modification to build the wysiwyg module in addition.

The initial editor is available using mvn install -Pjettyrun at

http://localhost:8080/xwiki/com.xpn.xwiki.wysiwyg.Wysiwyg/Wysiwyg.html


It's a rich text editor with the full standard toolbar and two text boxes allowing to view the wiki-> html -> wiki conversion.

It currently uses the Radeox renderer for wiki->html and the code from Christian Gmeiner for html -> wiki

This part is not yet the important part. We shoud replace them with a more powerfull HTML to Wiki parser. Either directly based on a new XWiki 2.0 syntax or working with new AND old syntax.

I think we need to start by getting the editor UI in place. I think the architecture should be as much to be very independent from the syntax itself.

The editor should as much as possible work without knowing much about the HTML itself. This might be a bit complex for links, images or attachments. Maybe what we need is the FF3 (and IE6) feature that allows to make a block non editable in the editor (content-editable = false or something like that). We then take control of the double click on the item and open the appropriate dialog box to edit. We should use the same type of thing to show macros in WYSIWYG mode (we would need a macro renderer API - macro + params).

Maybe the first thing you can start doing Marius, is get used to the editor by implementing simple stuff that we currently have in the editor. We need to do:

-  links
-- lnternal links (last, search, recent, multiwiki, other by extension)
-- Attachements (page, space, wiki, multiwiki, webdav, other by extension)
-- Image
-- email
-- external link
- images (need to chose image with link or link with image)
- table icons
- colors and fonts
- switch to wiki syntax
- view in the xwiki styles

We also need to make eveything configurable:

- which buttons and features
- choice of output syntax

We then will need among other things

- make it properly embeddable
- import from HTML/Word/other wiki syntax
- shortcuts for links and titles without using the menus (to be as efficient as typing [ ])
- visual macros (with many macros, using DnD)
- a macro editor
- real time editing (need to take it into account right away)
- powerfull tables (a la Excel)

I'm just talking about all these things so that we have a view on the final objective.

More info here about the feature requirements.

http://dev.xwiki.org/xwiki/bin/view/Design/NewWysiwygEditorBasedOnGwt

Ludovic

--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
begin:vcard
fn:Ludovic Dubost
n:Dubost;Ludovic
org:XWiki
adr:;;10 Rue Pernety;Paris;;75014;France
email;internet:[EMAIL PROTECTED]
title:CEO
tel;work:01 45 42 40 90
tel;fax:09 59 26 92 14
tel;home:09 54 26 92 14
tel;cell:06 09 34 92 14
x-mozilla-html:TRUE
url:http://www.xwiki.com
version:2.1
end:vcard

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to