在新的 RTE 编辑器中添加文本样式 (TYPO3 8.7.1) [英] Adding a textstyle in the new RTE editor (TYPO3 8.7.1)
本文介绍了在新的 RTE 编辑器中添加文本样式 (TYPO3 8.7.1)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以为标记的文本添加文本样式?
Is there a possibility to add a textstyle to a marked text?
以下代码不起作用...
The following code does not work...
RTE.default.contentCSS = fileadmin/templates/css/rte.css
RTE.default.buttons.textstyle.tags.span.allowedClasses := addToList(huge)
RTE.default.proc.allowedClasses := addToList(huge)
推荐答案
有同样的问题.全部手动添加,看不到任何更改.也试过了:
Have the same problem. Added all by manual and can't see any changes. Also tried:
在 TsConfig 中
In TsConfig
#RTE.default.preset = hit_custom
RTE.default.preset = minimal
RTE.config.tt_content.bodytext.preset = minimal
#RTE.tt_content.types.textmedia.bodytext.preset = hit_custom
RTE.config.tx_news_domain_model_news.bodytext.preset = default
在我的 ext_localconf.php 中
in my ext_localconf.php
#https://www.thomaskieslich.de/blog/127-typo3-8x-ckeditor-konfigurieren/
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['hit_custom'] = 'EXT:huskytheme/Configuration/RTE/Custom.yaml';
没有得到任何改变.也无法更改一般的完整、最小或默认样式 - 所有更改均无效
Didn't get any changes. Also can't change general full, minimal or default style - all changes have no effect
已解决:
删除完整的typo3temp文件夹rm -rf Typ3temp/*
并通过安装工具创建所有文件夹结构后,我得到了我的更改
after delete full typo3temp folder rm -rf typo3temp/*
and create all folder structure via Install tools i get my changes
这篇关于在新的 RTE 编辑器中添加文本样式 (TYPO3 8.7.1)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文