Version 1.5 glow.widgets.Editor
API Quick Reference
JavaScript is required to use the quick reference
A Rich Text Editor to allow text formatting with form inputs.
glow.onReady()
call.Further Info & Examples
Constructor
new glow.widgets.Editor(textarea, opts)
-
Parameters
- textarea
-
- Type
- | glow.dom.NodeList
Textarea HTML element that the Editor replaces on your page
- opts
-
- Type
- theme
-
Visual Theme
- Type
- Default
- "light"
- Optional
- Yes
Currently supported themes are "dark" and "light".
Examples
var editor = new glow.widgets.Editor("#commentEntry");
Events
- commit
-
Fired whenever the associated textarea is updated by the editor.
Synopsis
glow.events.addListener(myEditor, "commit", function(event) { // ... });
Arguments
- event
-
- Type
- glow.events.Event
Event Object