format¶
-
format
¶ -
- Type
- string (keyword)
- Path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']
- Scope
- Display
- RenderType
- codeEditor
The value specifies the language the code editor should handle. Allowed values:
css
html
javascript
php
typoscript
xml
Examples¶
Code editor with format HTML¶
[
'columns' => [
'codeeditor1' => [
'label' => 'codeEditor_1 format=html, rows=7',
'description' => 'field description',
'config' => [
'type' => 'text',
'renderType' => 'codeEditor',
'format' => 'html',
'rows' => 7,
],
],
],
]
Copied!