From b05351f5affc20cd732b7033ee3f6c74d70e6ef4 Mon Sep 17 00:00:00 2001 From: David Greminger Date: Mon, 27 Jul 2015 19:16:01 +0100 Subject: [PATCH] Change text field to rte (fix #4) --- contao/dca/tl_page.php | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/contao/dca/tl_page.php b/contao/dca/tl_page.php index 6c74866..9fe4193 100644 --- a/contao/dca/tl_page.php +++ b/contao/dca/tl_page.php @@ -4,6 +4,8 @@ * Table tl_page */ +\System::loadLanguageFile('tl_explain'); + $GLOBALS['TL_DCA']['tl_page']['palettes']['__selector__'][] = 'addImage'; $GLOBALS['TL_DCA']['tl_page']['palettes']['regular'] = str_replace( @@ -22,7 +24,7 @@ 'exclude' => true, 'inputType' => 'checkbox', 'eval' => [ - 'submitOnChange' => true + 'submitOnChange' => true, ], 'sql' => "char(1) NOT NULL default ''", ], @@ -34,7 +36,7 @@ 'filesOnly' => true, 'fieldType' => 'radio', 'mandatory' => true, - 'tl_class' => 'clr' + 'tl_class' => 'clr', ], 'sql' => "binary(16) NULL", 'load_callback' => [ @@ -51,7 +53,7 @@ 'inputType' => 'text', 'eval' => [ 'maxlength' => 255, - 'tl_class' => 'w50' + 'tl_class' => 'w50', ], 'sql' => "varchar(255) NOT NULL default ''", ], @@ -62,7 +64,7 @@ 'inputType' => 'text', 'eval' => [ 'maxlength' => 255, - 'tl_class' => 'w50' + 'tl_class' => 'w50', ], 'sql' => "varchar(255) NOT NULL default ''", ], @@ -76,7 +78,7 @@ 'rgxp' => 'digit', 'nospace' => true, 'helpwizard' => true, - 'tl_class' => 'clr' + 'tl_class' => 'clr', ], 'sql' => "varchar(64) NOT NULL default ''", ], @@ -86,10 +88,13 @@ 'inputType' => 'textarea', 'search' => true, 'eval' => [ - 'style' => 'height:60px', - 'decodeEntities' => true, - 'tl_class' => 'clr' + 'mandatory' => false, + 'rte' => 'tinyMCE', + 'helpwizard' => true, + 'tl_class' => 'clr', + 'style' => 'height:60px', ], + 'explanation' => 'insertTags', 'sql' => "text NULL", ], ];