This is a custom widget for the Rich Ajax Platform (RAP) that wraps the CKEditor, a web-based WYSIWYG/Rich-Text editor. To run it you need RAP 1.4M4 or later.
Currently, the API consists of the two methods getText
and setText
.
The text can be any valid HTML, but should be limited to the subset the editor can handle.
The editor can be customized by editing the files in the src/main/resources/resources
folder of the de.tolina.common.rwt.widgets.ckeditor
bundle.
You might need to clear the browsers cache and restart the server for all changes to take effect.
Editing the file config.js
lets you change the toolbar, language, and formatting options (fonts, colors).
Be careful, all changes here bear the risk of breaking the editor.
To change the icons, edit or replace icons.png
.
To change the editors colors, borders, spacings, etc, edit editor.css
. You can use a tool like Firebug to examine which CSS classes are used where in the editor.
For various reasions some plugins have been removed from ckeditor.js
and disabled in config.js
, therefore not all options of the full CKEdtior are working.
If you wish, you can compile your own ckeditor.js
. Get more info here: http://docs.cksource.com/CKEditor_3.x/Developers_Guide/CKPackager
The ckeditor.pack
used for this project can be found in the bundles docs
folder.
=== License ===
All classes are published under the terms of the Eclipse Public License v1.0