sourceforge > tacos
 

InlineEditor

An inline rich-text editor. This component is used outside of forms and is capable of calling a listener method when users click on save or cancel. If you want to use a similar component inside forms, take a look at HtmlArea.

See also: Live Demo

Parameters

Name Type Direction Required Default Description
listener IActionListener in no   Listener that gets invoked when save is clicked. The contents of the editor will have been bound to the value parameter.
cancel IActionListener in no   Listener that gets invoked when cancel is clicked.
stateful boolean in no false If the ajax-request for updating the value will be stateful.
direct boolean in no false Specifies whether or not to do a direct service call for component. This will improve the performance of the call dramatically, but will probably produce tons of exceptions and problems if component is embedded in other components.
value String in / out yes   The value to read and update.
disabled boolean in no false If true, text editing controls will not be rendered.
refreshContents boolean in no false Whether to refresh the contents shown on the client after the listener has been invoked. Leave this setting to false if you don't alter the content server-side (and also to minimize network traffic).
items String in no 'commandGroup','|', 'blockGroup','textGroup','|', 'justifyGroup','|', 'listGroup','indentGroup','|', 'linkGroup' The toolbar items to include in the editor.
updateComponents List (or comma-delimited String) in no   List of component id strings to refresh after invoking listener.

Body: not allowed

Informal parameters: allowed

Reserved parameters: none

Examples

HTML template

          
<div jwcid="@tacos:InlineEditor" listener="listener:storeData" value="ognl:editedHtml">Editable content</div>