public class RichPureEditor
- Object
- PureEditor
- RichPureEditor
The pure rich text editor backend. It maps the
RichTextArea command / query vocabulary onto a
RichView, converting the HTML exchanged with the application to and from the editor’s inline / block
model.Constructors
public RichPureEditor(EditorHost host, String editorType) | Creates a rich text editor backend. |
Methods
Inherited methods
From PureEditor
Constructor details
RichPureEditor
public RichPureEditor(EditorHost host, String editorType)Creates a rich text editor backend.
Method details
createView
protected EditorView createView(EditorHost host, boolean codeMode)Creates the editor view. Subclasses override to supply a code or rich text view.
cmd
public void cmd(String name, String arg)Executes a one way command. Unknown commands are ignored so subclasses can add vocabulary without
breaking the base.
Parameters
nameString- the command name
argString- the optional argument, may be null
query
public String query(String name, String arg)Executes a query returning a string result. Unknown queries return an empty string.
Parameters
nameString- the query name
argString- the optional argument, may be null