首页 > 解决方案 > Typo3 8.7.x / CKEditor:如何覆盖下拉列表中标题的标签?

问题描述

我想覆盖下拉列表中标题的标签。我尝试了以下 yaml 配置,但它不起作用:

editor:
  config:
    format_h2: { name: "test", element: "h1"}

标签: ckeditortypo3typo3-8.x

解决方案


我自己找到了一个解决方案,希望对其他人有所帮助:您可以创建从 format_tags 中删除标准标题并添加自定义标题,例如 header1;headline2,...

editor:
  config:
    format_tags: 'p;headline1;headline2;headline3'
    format_headline1: { element: 'h1', name: 'Very Large Headline' }
    format_headline2: { element: 'h2', name: 'Large Headline' }
    format_headline3: { element: 'h3', name: 'Normal Headline' }

推荐阅读