ckeditor - Typo3 8.7.x / CKEditor:如何覆盖下拉列表中标题的标签?
问题描述
我想覆盖下拉列表中标题的标签。我尝试了以下 yaml 配置,但它不起作用:
editor:
config:
format_h2: { name: "test", element: "h1"}
解决方案
我自己找到了一个解决方案,希望对其他人有所帮助:您可以创建从 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' }
推荐阅读
- entity-framework-core - Entity Framework Core中如何做count等聚合函数
- reactjs - “this”未在 reactJs 的函数内部定义
- python - 如何在 Python 中替换数据框中的子字符串
- r - 函数“if”应用于每个单元格
- javascript - 通过 JS 开启 CSS 效果
- java - 在不使用任何没有循环的库的情况下检查给定的字符串是否为回文
- wpf - Data Binding multiple items in code on a listbox
- java - 如何在 Flink 中为 Google Cloud Storage 创建 RecoverableWriter
- c# - 如何仅提取数字,而不是任何运算符
- ruby-on-rails - 运行rails服务器时克隆的项目不会启动