Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CKEditor自定义配置在草稿工作区中不工作_Ckeditor_Typo3 8.x - Fatal编程技术网

CKEditor自定义配置在草稿工作区中不工作

CKEditor自定义配置在草稿工作区中不工作,ckeditor,typo3-8.x,Ckeditor,Typo3 8.x,我按照建议使用yaml文件为CKEditor创建了一个自定义配置文件,并将其注册到自定义元素的扩展名中 $GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['custom_rte'] = 'fileadmin/templates/css/custom_rte.yaml'; 只要我在默认的工作区中,这就可以正常工作 当我切换到草稿工作区并保存一个元素时,配置将丢失,我将获得默认工具栏,没有自定义css和按钮 知道这会导致什么吗 Typo3 8.7.15解决

我按照建议使用yaml文件为CKEditor创建了一个自定义配置文件,并将其注册到自定义元素的扩展名中

$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['custom_rte'] = 'fileadmin/templates/css/custom_rte.yaml';
只要我在默认的工作区中,这就可以正常工作

当我切换到草稿工作区并保存一个元素时,配置将丢失,我将获得默认工具栏,没有自定义css和按钮

知道这会导致什么吗


Typo3 8.7.15

解决方案实际上相当简单

我必须在扩展中为CKEditor设置默认预设,而不是使用自定义预设,然后在TSConfig页面中设置

所以这是可行的(在ext_localconf.php中)

这样,CKEditor总是使用我的自定义yaml文件。不需要页面TSConfig

$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['default'] = 'fileadmin/templates/css/custom_rte.yaml';