CQ富文本编辑器专用char插件
Special char plugin in CQ's rich text editor
我修改了CQ的富文本编辑器,加入了特殊的字符插件。但问题是,这也包括 html 源代码编辑插件。我不想将其包含在我的富文本编辑器中。有什么方法可以包含特殊字符但不能包含 html 源代码编辑。基本上我不想要 RTE 中的 html 编辑选项。
specialchars
功能通过 misctools
插件提供,该插件还包含 sourceedit
功能。
为了激活插件的特定功能,features
属性 必须是 String[]
,其中包含您需要的特定功能的值,如下所示。
"rtePlugins": {
"jcr:primaryType": "nt:unstructured",
"misctools": {
"jcr:primaryType": "nt:unstructured",
"features": ["sourceedit"]
}
}
如果您 features
属性 的类型是 String
并且值是 *
,那么它将包括插件的所有功能。可能这就是为什么你得到 sourceedit
和 specialchars
.
Configuring the Rich Text Editor might help you understand more on using the rich text editor in AEM. Also refer the API documentation for the MiscToolsPlugin.
我修改了CQ的富文本编辑器,加入了特殊的字符插件。但问题是,这也包括 html 源代码编辑插件。我不想将其包含在我的富文本编辑器中。有什么方法可以包含特殊字符但不能包含 html 源代码编辑。基本上我不想要 RTE 中的 html 编辑选项。
specialchars
功能通过 misctools
插件提供,该插件还包含 sourceedit
功能。
为了激活插件的特定功能,features
属性 必须是 String[]
,其中包含您需要的特定功能的值,如下所示。
"rtePlugins": {
"jcr:primaryType": "nt:unstructured",
"misctools": {
"jcr:primaryType": "nt:unstructured",
"features": ["sourceedit"]
}
}
如果您 features
属性 的类型是 String
并且值是 *
,那么它将包括插件的所有功能。可能这就是为什么你得到 sourceedit
和 specialchars
.
Configuring the Rich Text Editor might help you understand more on using the rich text editor in AEM. Also refer the API documentation for the MiscToolsPlugin.