Functions related to text writing operations. These functions interact with the configured TextWriter.
| Function | Description | Parameters | Returns |
|---|
| INVOX.Write(text) | Writes the given text at the current caret position. | String | void |
INVOX.Write("Hello, world!");
| Function | Description | Parameters | Returns |
|---|
| INVOX.AppendText(text) | Appends text at the end of the editor content. | String | void |
INVOX.AppendText("Additional text.");
| Function | Description | Parameters | Returns |
|---|
| INVOX.PrependText(text) | Prepends text at the beginning of the editor content. | String | void |
INVOX.PrependText("Prepended text. ");
| Function | Description | Parameters | Returns |
|---|
| INVOX.ClearText() | Clears all content from the current editor. | — | void |
INVOX.ClearText();
| Function | Description | Parameters | Returns |
|---|
| INVOX.GetText() | Returns the full plain text from the current editor. | — | String |
const text = INVOX.GetText();
| Function | Description | Parameters | Returns |
|---|
| INVOX.SetSelection(range) | Sets the current selection range in the editor. | INVOX.Range | void |
INVOX.SetSelection(new INVOX.Range(0, 5));
| Function | Description | Parameters | Returns |
|---|
| INVOX.SetTextWriter(writer) | Sets the TextWriter implementation to use. | Object | void |
INVOX.SetTextWriter(INVOX.TextAreaTextWriter);
| Function | Description | Parameters | Returns |
|---|
| INVOX.SetWriterTarget(target) | Sets the current editor element as writing target. | Element | void |
INVOX.SetWriterTarget(document.getElementById("my-textarea"));
| Function | Description | Parameters | Returns |
|---|
| INVOX.GetWriterTarget() | Returns the current writing target element. | — | Element |
const target = INVOX.GetWriterTarget();