如何在 TYPO3 7.6 中增加常量和设置 t3editor 高度

How to increase constants and setup t3editor height in TYPO3 7.6

我们最近将 TYPO3 版本从 6.2 更新到 7.6,现在 t3editor 字段太小而无法使用:

它们以前是可调整大小的,但现在它们是固定高度的,这太小了。

是否有内置方法可以再次调整它们的大小?

编辑:我最终将 rowswrap 值添加到 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';
}

一种替代方法可能是覆盖 $GLOBALS['TCA'] 列配置。您可以在 sys_template table 配置中为第一个 config(即 setup 文本区域)、constantsdescription:

$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

TCA 参考 page for a TEXT-type column gives more information, and the page for storing TCA changes 可以告诉您将更改放在哪里。