Tbeditor
Tbeditor
- Java API: N/A
- JavaScript API: N/A
Employment/Purpose
The component used to represent Trumbowyg
Tbeditor is a rich text editor to be used inside web pages. It's a WYSIWYG editor, which means that the text being edited on it looks as similar as possible to the results users have when publishing it.
Example
<tbeditor id="tb" value="this is a demo for <b>trumbowy</b> editor!!" />
Customized Properties
Tbeditor provides a way for users to customize their own properties, check official document for the detail[1]. Here shows a simple example how to programmatic change the property.
Map config = new HashMap();
config.put("btns", new String[] {"bold", "italic", "link"});
config.put("closable", true);
tb.setConfig(config);
We create a map while key is property name with reasonable value.
Note that we have to wrap the value into JavaScriptValue
object if it's not String.
- ↑ Not support all properties, for example, localization, custom skin, are not supported.
Supported Events
onChange |
InputEvent
|
onChanging |
InputEvent
|
Supported Children
*NONE
Use Cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|