Typo3 8 LTS:CKEditor 下拉宽度

Typo3 8 LTS: CKEditor Dropdown Width

我喜欢 Typo3 中的新 CKEditor,比旧的 RTE 好多了。

但是我对它的配置有疑问: 是否可以增加下拉菜单的宽度? 我试过提示:

.cke_combo_text { width:auto !important; }
.cke_combopanel { height:600px !important; }

但是没用。有什么建议吗?

找到了! 我们正在使用我们自己的模板分发。

您必须在 ext_tables.php

中添加

//Overwrite BE-Stylings if needed. e.g. increase the select-width of ckeditor for Inline- / Block-Styles

if( TYPO3_MODE == "BE"){ $GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['[your_ext_key]'] = 'EXT:[your_ext_key]/Resources/Private/Backend/'; }

然后你可以添加一个样式表:

例如。 typo3conf/ext/[your_ext_key]/Resources/Private/Backend/rte_ckeditor.scss

.cke_combopanel {
    min-width: 35rem !important;

    .cke_panel_frame {
        min-width: 35rem !important;
    }
}