我想在Mura中修改CKEditor的"Format“下拉列表,因为我不喜欢Mura重命名标题的方式。例如,标题元素被重命名为“<h2>”,而<h3>元素被重命名为“Heading2”。我明白他们为什么这样做了,因为<h1>是为页面标题保留的,但是它让内容编辑器和可访问性感到困惑。
我想删除此重命名功能。
发布于 2017-06-29 05:42:14
我认为正在使用的命名(如“标题1")是CKEditor本身(reference)的一部分。

至于哪些HTML标签实际用于这些格式,Mura允许您对其进行自定义。查看主题文件夹下的contentRenderer.cfc文件。在该文件中,它们设置用于自定义编辑器和页面布局的变量。特别是这一节(reference):
// The following settings allow developers to change logical page structure.
// For example, some developers prefer H1 tags for their page titles,
// some prefer H2 tags - you can adjust this here:
this.headline='h2';
this.subHead1='h3';
this.subHead2='h4';
this.subHead3='h5';
this.subHead4='h6';我不是100%确定,但我认为这些设置也在Mura的CKEditor中使用。
https://stackoverflow.com/questions/44802703
复制相似问题