This class defines the different commands that users can chain in order to interact with the editor
Methods
addNode()
Adds a node to the editor at the current position
Presentation
addNode(node: string): this;
Parameters
Name
Type
Description
node
string
an xml string representation of the node instance to be added
Returns
this
commit()
Commits a transaction, making the changes effective in the editor.
Presentation
commit(): void;
Returns
void
moveCursor()
Moves the cursor to the specified position
Presentation
moveCursor(pos?: number | undefined): this;
Parameters
Name
Type
Description
pos
number | undefined
an integer representing the position you want the cursor to move to. You can retrieve positions by using the event services. Defaults to the current position.