2021-12-21 15:51:26 +01:00
|
|
|
|
|
|
|
|
import { ZeroEditor } from '../../../editor/editor';
|
|
|
|
|
|
2021-12-22 10:55:40 +01:00
|
|
|
const editor = new ZeroEditor('integrations');
|
2021-12-21 15:51:26 +01:00
|
|
|
|
|
|
|
|
editor.resourcePrefix = '@translation.fields.';
|
|
|
|
|
|
|
|
|
|
const set = editor.fieldset();
|
|
|
|
|
|
|
|
|
|
set.field('key').text({ maxLength: 300 });
|
|
|
|
|
set.field('display').state({
|
|
|
|
|
items: [
|
|
|
|
|
{ label: '@translation.display.text', value: 0 },
|
|
|
|
|
{ label: '@translation.display.html', value: 1 }
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
editor.field('value').setHidden(x => x.display === 0).rte();
|
|
|
|
|
editor.field('value').setHidden(x => x.display === 1).textarea();
|
|
|
|
|
|
|
|
|
|
export default editor;
|