executeCut
Cuts the selected content to the clipboard.Example
Notes
- Disabled in readonly mode
- Disabled when editor is disabled
- Removes selected content and copies to clipboard
executeCopy
Copies the selected content to the clipboard.Parameters
Optional copy configuration
Example
Notes
- Works in all editor modes including readonly
- Copies to system clipboard
executePaste
Pastes content from the clipboard at the current cursor position.Parameters
Optional paste configuration
Example
Notes
- Disabled in readonly mode
- Disabled when editor is disabled
- Supports text, HTML, and image data from clipboard
executeSelectAll
Selects all content in the current context.Example
Notes
- If cursor is inside a table cell, selects all content in that cell
- Otherwise, selects all document content
executeBackspace
Deletes the selected content or the character before the cursor.Example
Notes
- Disabled in readonly mode
- Disabled when editor is disabled
- Cannot delete the first character if it’s the document zero-width character
- If text is selected, deletes the selection
- If no selection, deletes one character before cursor
setRange
Sets the current selection range.Parameters
Start position index in the element list
End position index in the element list
Table ID if selection is within a table
Starting table cell index
Ending table cell index
Starting table row index
Ending table row index
Example
replaceRange
Replaces the current range with a new range.Parameters
Range object containing startIndex, endIndex, and optional table coordinates
Example
setPositionContext
Sets the position context (e.g., entering a table cell).Parameters
Range with table information to set context