fromTextArea
Unofficial
Creates a CodeMirror 5 editor from a textarea element.
Import:
import type { fromTextArea } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
function fromTextArea(host: HTMLTextAreaElement, options?: Cm5EditorConfiguration): Cm5EditorParameters:
| Parameter | Type | Description |
|---|---|---|
host |
HTMLTextAreaElement | The textarea element to replace. |
options? |
Cm5EditorConfiguration | Optional editor configuration. |
Returns: Cm5Editor — The created editor instance.