codeeditor - 渲染一个用于格式化代码或标记的纯文本编辑器. 请注意,这些选项可能会继承自为管理员在后端定义的代码编辑器偏好设置.
css_content:
type: codeeditor
size: huge
language: html以下 字段属性 受支持且常用。
| Property | Description |
|---|---|
| label | a name when displaying the form field to the user. |
| default | specifies a default string value, optional. |
| comment | places a descriptive comment below the field. |
| language | code language, for example, php, css, javascript, html. Default: php. |
| showGutter | shows a gutter with line numbers. Default: true. |
| wrapWords | breaks long lines on to a new line. Default true. |
| fontSize | the text font size. Default: 12. |