blueways/bw-jsoneditor

Adds a JSON Form Editor type to the TYPO3 Backend

Installs: 88

Dependents: 1

Suggesters: 0

Type:typo3-cms-extension

v1.0.0 2019-04-30 11:41 UTC

README

Integrates the JSON Editor into the TYPO3 Backend.

The extension adds a new renderType "jsonForm" for TCA text columns.

Screenshot

Install

composer require blueways/bw-jsoneditor

Usage

You can set or override any TCA column:

$GLOBALS['TCA']['tt_content']['columns']['header']['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']['header']['config']['options'] = [
    'mode' => 'tree'
];

The new option "height" controls the height of the editor when initialized.