Skip to content

A RichText widget for RAP based on CKEditor

Notifications You must be signed in to change notification settings

netgo-software/rap-ckeditor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CKEditor 4 for RAP

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.

API

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.

Customization

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.

Editor Configuration

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.

Editor Theming

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.

Advanced Customization

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.

Legal

=== License ===

All classes are published under the terms of the Eclipse Public License v1.0

About

A RichText widget for RAP based on CKEditor

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 78.9%
  • CSS 8.4%
  • Java 6.9%
  • HTML 5.8%