Plain Text / Code Editor
The aceeditor
element is great for editing HTML, CSS, JSON, or any other type of code in your app. This is the same element that is used by throughout the BetterForms interface.
Key | Value(s) | Type | Description |
---|---|---|---|
|
| string | |
| string | code language options: html, javascript, markdown, plain_text, css, json | |
| string, object or array | the field or JSON node of the model used for the source | |
| optional | boolean | if true, the model is stringified for editing. This allows you to edit the JSON directly in the MODEL (vs it being stored as a string (all other languages) |
| optional | string | default of 700px else element height can be specified |
| optional | string | The theme used in the editor |
TODO add support for options {}
Example
Last updated