Adding a textstyle in the new RTE editor (TYPO3 8.7.1)

六眼飞鱼酱① 提交于 2020-01-03 02:48:09

问题


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)

回答1:


Have the same problem. Added all by manual and can't see any changes. Also tried:

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

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

Solved:

after delete full typo3temp folder rm -rf typo3temp/* and create all folder structure via Install tools i get my changes



来源:https://stackoverflow.com/questions/43738113/adding-a-textstyle-in-the-new-rte-editor-typo3-8-7-1

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!