blueways / bw-jsoneditor
Adds a JSON Form Editor type to the TYPO3 Backend. View and edit JSON data with code formatting and syntax highlighting.
Installs: 27 460
Dependents: 3
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Language:CSS
Type:typo3-cms-extension
Requires
- typo3/cms-core: ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0
Requires (Dev)
- typo3/cms-base-distribution: ^12.0
This package is auto-updated.
Last update: 2024-08-19 21:21:04 UTC
README
Integrates the JSON Editor into the TYPO3 Backend.
The extension adds a new renderType "jsonForm" for TCA text columns.
Install
composer require blueways/bw-jsoneditor
Usage
You can set or override any TCA column:
$GLOBALS['TCA']['tt_content']['columns']['bodytext']['config']['renderType'] = 'jsonForm';
Make sure the database column of your field is large enough if you want to use an existing varchar(255) field, e.g. set to type "text".
Configuration
You can configure the JSON Editor with the offical API by adding the settings to the options array:
$GLOBALS['TCA']['tt_content']['columns']['bodytext']['config']['options'] = [
'mode' => 'tree'
];
The new option "height" controls the height of the editor when initialized.
Contribute
This extension was made by Maik Schneider: Feel free to contribute!