Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 625 Bytes

File metadata and controls

39 lines (31 loc) · 625 Bytes

Code Field (type: code)

CodeMirror editor with optional language extension and tag insertion.

Typical Props

  • language
  • basicSetup // CodeMirror options.
  • taggable
  • contained

Example

'template' => [
    'label' => $this->trans('Template'),
    'type' => 'code',
    'taggable' => true,
]

Additional Examples

'script' => [
    'label' => $this->trans('Transform script'),
    'type' => 'code',
    'language' => 'javascript',
    'basicSetup' => ['lineNumbers' => true],
]
'payload' => [
    'type' => 'code',
    'contained' => true,
    'taggable' => true,
]