0

I want to modify the "Format" dropdown for CKEditor within Mura, because I don't like the way Mura renames the headings. For example, an <h2> element is renamed to "Heading", and an <h3> element is renamed to "Heading 2". I get why they did this, because the <h1> is reserved for the page title, but it's confusing for content editors and accessibility.

I want to remove this renaming feature.

4

1 回答 1

0

我相信正在使用的命名(如“标题 1”)是 CKEditor 本身的一部分(参考)。

在此处输入图像描述

至于哪些 HTML 标签实际用于这些格式,Mura 允许您对其进行自定义。查看contentRenderer.cfc主题文件夹下的文件。在该文件中,他们正在设置用于自定义编辑器和页面布局的变量。特别是本节(参考):

// 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 中使用。

于 2017-06-28T21:42:13.527 回答