public class RichPureEditor

  1. Object
  2. PureEditor
  3. 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

protected EditorView createView(EditorHost host, boolean codeMode)Creates the editor view.
public void cmd(String name, String arg)Executes a one way command.
public String query(String name, String arg)Executes a query returning a string result.

Inherited methods

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

name String
the command name
arg String
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

name String
the query name
arg String
the optional argument, may be null