HTML Editor API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
htmlrequired | string | '' | Sets the editor content. |
moderequired | string | — | Sets the CodeMirror language mode (e.g. 'htmlmixed', 'text/css', 'null'). |
disabled | boolean | false | Prevents the editor from accepting input. |
auto-refresh | boolean | false | Enables the CodeMirror auto-refresh plugin. |
lint | boolean | false | Enables the CodeMirror lint plugin. Requires a lint callback set via setLintCallback(). |
placeholder | string | '' | Placeholder text shown when the editor is empty. |
line-wrapping | boolean | false | Enables line wrapping in the editor. |
line-numbers | boolean | false | Shows line numbers in the gutter. |
single-line | boolean | false | Constrains the editor to a single line. Combine with line-wrapping for a textarea-like appearance. |
translations | object | {} | Translation strings for editor UI labels. |
editor | boolean | — | Required when vce-html-editor is a child of vce-code-editor. |