Wednesday, November 29, 2006

GWT WYSIWYG HTML (Rich Text) Editor Widget

This is a simple but sufficient for most cases WYSIWYG HTML (Rich Text) Editor fully (99% + JSNI) implemented with GWT.

I just created a new project and committed the first version.
http://code.google.com/p/gwt-html-editor/

Anonymous checkout:
svn checkout http://gwt-html-editor.googlecode.com/svn/trunk/ gwt-html-editor

This is preview release, it needs more testing on different browsers, I only tested on IE 7 and Firefox 2.0

Simple use case:

Editor editor = new Editor();
editor.setWidth("100%");
editor.setHeight("300px");
editor.setHTML("Hello World");

editor.load();
RootPanel.get().add(editor);

//...

String html = editor.getHTML();

Extended SPI and new formatting features are coming soon.

Check it out.

Any comments are highly appreciated.

Update: http://pavelgj.blogspot.com/2006/11/update-gwt-rich-text-editor-commit.html

3 comments:

Yegor said...

Great stuff! This thing must be finalized.

FYI: http://gwtaddons.sourceforge.net/rich-text-editor.html

craige said...

Thanks a lot for this. I have been using it for a couple of months now across IE and firefox and aside from one slight glitch has been working great.

Regards

Craige

TonY JoShuA MonTana said...

is there any tutorial on how to integrate this into my web application..please direct me..