Gets or sets the current text content of the editor.
Gets or sets the direction of the editor (LTR or RTL).
Gets or sets the text of the document along with the selection information.
The programming language of the editor's content. This is used to determine the syntax highlighting strategy by common libraries like Highlight.js and Prism.js.
Gets the total height of the editor's content as a CSS value such as 123px
or min(x, y)
.
Intended to be queried as part of an onUpdate
implementation.
Gets or sets whether the editor is readonly.
Gets or sets whether spellchecking is enabled.
💡 Note: This isn't set to false
by default because the implementation changes the
setting document-wide, and we think it's important you know that. This is also why it's not
part of the settings. We want you to set it explicitly.
Default: true
.
Determines whether the editor wraps text or allows it to scroll horizontally.
Marks a line as invalid, causing the gutter to re-render it, potentially with new customizations. See: GutterCustomizer
Changes the function to be called when the editor's selection is updated.
The callback to invoke when the editor's selection is updated. The callback is
not invoked when the editor's selection is updated via the code
property.
Changes the function to be called when the editor's text content is updated.
The callback to invoke when the editor's text content is updated. The callback
is not invoked when the editor's text content is updated via the code
property.
Generated using TypeDoc
Kullna Editor
A small but feature-rich code editor for the web.
Create a new editor instance using the createEditor function, passing in a CSS selector and an Options object.
See the Package Documentation @kullna/editor for more information.