[FEATURE] Styling t3editor for "HTML" configurable
authorGeorg Ringer <mail@ringerge.org>
Tue, 20 Mar 2012 07:19:39 +0000 (08:19 +0100)
committerTobias Liebig <tobias.liebig@typo3.org>
Wed, 21 Mar 2012 08:09:18 +0000 (09:09 +0100)
The styling of t3editor should be configurable for
the content element "HTML". This makes it possible
to use e.g. a custom height

Change-Id: I64cde4382cc1e3b3e2185c52381d538aeb721698
Resolves: #34548
Releases: 4.8
Reviewed-on: http://review.typo3.org/9758
Reviewed-by: Philipp Gampe
Reviewed-by: Tobias Liebig
Tested-by: Tobias Liebig
typo3/sysext/t3editor/classes/class.tx_t3editor_tceforms_wizard.php
typo3/sysext/t3editor/ext_tables.php

index 5273c3e..7fc80b5 100644 (file)
@@ -20,7 +20,7 @@ class tx_t3editor_tceforms_wizard {
                $attributes = 'rows="' . $config['rows'] . '" ' .
                        'cols="' . $config['cols'] . '" ' .
                        'wrap="off" ' .
-                       'style="width:98%; height: 200px;" ' .
+                       'style="' . $config['wizards']['t3editor']['params']['style'] . '" ' .
                        'onchange="' . $parameters['fieldChangeFunc']['TBE_EDITOR_fieldChanged'] . '" ';
 
                $parameters['item'] = '';
index 266bbd3..608059b 100644 (file)
@@ -21,6 +21,7 @@ if (TYPO3_MODE === 'BE') {
                'script' => 'wizard_table.php',
                'params' => array(
                        'format' => 'html',
+                       'style' => 'width:98%; height: 200px;',
                ),
        );
                // Activate the t3editor only for type html