typo3typoscriptt3editor

How to increase constants and setup t3editor height in TYPO3 7.6


We recently updated our TYPO3 version from 6.2 to 7.6 and now the t3editor fields are way too small to work with:

enter image description here

They used to be re-sizable but now they are fixed height, that is way too small.

Is there a builtin way to make them re-sizable again?

EDIT: I ended up adding rows and wrap value to typo3/sysext/t3editor/Configuration/TCA/Overrides/sys_templa‌​te.php

// Activate t3editor for sys_template constants
if (is_array($GLOBALS['TCA']['sys_template']['columns']['constants']['config'])) {
    $GLOBALS['TCA']['sys_template']['columns']['constants']['config']['renderType'] = 't3editor';
    $GLOBALS['TCA']['sys_template']['columns']['constants']['config']['format'] = 'typoscript';
    $GLOBALS['TCA']['sys_template']['columns']['constants']['config']['rows'] = 20;
    $GLOBALS['TCA']['sys_template']['columns']['constants']['config']['wrap'] = 'ON';
}

// Activate t3editor for sys_template config
if (is_array($GLOBALS['TCA']['sys_template']['columns']['config']['config'])) {
    $GLOBALS['TCA']['sys_template']['columns']['config']['config']['renderType'] = 't3editor';
    $GLOBALS['TCA']['sys_template']['columns']['config']['config']['format'] = 'typoscript';
    $GLOBALS['TCA']['sys_template']['columns']['config']['config']['rows'] = 20;
    $GLOBALS['TCA']['sys_template']['columns']['config']['config']['wrap'] = 'ON';
}

Solution

  • One alternative may be to override $GLOBALS['TCA'] for the column configurations. You would give new values to cols, rows, or wrap in the sys_template table configuration for the first config (which is the setup textarea), the constants, and the description:

    $GLOBALS['TCA']
    sys_template
        columns
            config {***setup***}
                config
                    cols = 48
                    format = typoscript
                    renderType = t3editor
                    rows = 10
                    softref = TStemplate,email[subst],url[subst]
                    type = text
                    wrap = OFF
                defaultExtras = fix-font : enable-tab
                label = LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:systemplate.config
            constants
                config
                    cols = 48
                    format = typoscript
                    renderType = t3editor
                    rows = 10
                    softref = TStemplate,email[subst],url[subst]
                    type = text
                    wrap = OFF
                defaultExtras = fix-font : enable-tab
                label = LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:systemplate.constants
            description
                config
                    cols = 48
                    rows = 5
                    type = text
                defaultExtras = fix-font : enable-tab
                label = LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:systemplate.description
    

    The TCA Reference page for a TEXT-type column gives more information, and the page for storing TCA changes can tell you where to put your changes.