From c8d7072c007b0c2da76f7fbb8193abc132ba20d1 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner <2000sw@gmail.com> Date: Fri, 4 Mar 2016 17:55:08 +0100 Subject: [PATCH] [TASK] TCA: t3editor TBE_EDITOR save via flexForm reload onChange We allow submitForm of TBE to issued issued via flexForm and bypass SplitButtons preSubmitCallbacks. --- .../TCA/tx_styleguide_elements_t3editor.php | 19 +++++++++++++++++++ ext_tables.sql | 1 + 2 files changed, 20 insertions(+) diff --git a/Configuration/TCA/tx_styleguide_elements_t3editor.php b/Configuration/TCA/tx_styleguide_elements_t3editor.php index dba232ec..891020c6 100644 --- a/Configuration/TCA/tx_styleguide_elements_t3editor.php +++ b/Configuration/TCA/tx_styleguide_elements_t3editor.php @@ -20,6 +20,7 @@ 'starttime' => 'starttime', 'endtime' => 'endtime', ], + 'requestUpdate' => 't3editor_reload_1', ], @@ -78,6 +79,23 @@ 'rows' => 7, ], ], + 't3editor_reload_1' => [ + 'exclude' => 1, + 'label' => 't3editor_reload_1', + 'config' => [ + 'type' => 'select', + 'items' => [ + [ + 'label1', + 0, + ], + [ + 'label2', + 1, + ], + ], + ], + ], 't3editor_inline_1' => [ 'exclude' => 1, 'label' => 't3editor_inline_1', @@ -185,6 +203,7 @@ 'showitem' => ' --div--;t3editor, t3editor_1, + t3editor_reload_1, --div--;in inline, t3editor_inline_1, --div--;in flex, diff --git a/ext_tables.sql b/ext_tables.sql index eb922b0b..63879f55 100755 --- a/ext_tables.sql +++ b/ext_tables.sql @@ -558,6 +558,7 @@ CREATE TABLE tx_styleguide_elements_t3editor ( t3_origuid int(11) DEFAULT '0' NOT NULL, t3editor_1 text, + t3editor_reload_1 int(11) DEFAULT '0' NOT NULL, t3editor_inline_1 text, t3editor_flex_1 text,