insertText
function exported by @mwillbanks/tuil-editor.
function
Public function exported by @mwillbanks/tuil-editor.
export function insertText(
session: EditorSession,
value: string,
): EditorSnapshot;Members
This declaration has no public members.
Parameters
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
session | EditorSession | Yes | Supplies the session value as EditorSession. | EditorSession |
value | string | Yes | Supplies the value value as string. | — |
Returns
EditorSnapshot — Returns a value that satisfies EditorSnapshot.
Related types: EditorSnapshot
Throws
No thrown errors are documented for this declaration.
Related types
Source
View the secondary source reference