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: 21 521

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:CSS

Type:typo3-cms-extension

v1.1.0 2022-10-17 18:02 UTC

This package is auto-updated.

Last update: 2024-03-19 20:24:13 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']['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!

Thanks to blueways and XIMA!