【发布时间】:2017-08-11 23:21:59
【问题描述】:
我目前在我的 AEM 6.2 项目中使用富文本编辑器 (RTE)。我想将 RTE 配置为使用 blockquote 标签。如何做到这一点?
<blockquote>
组件代码:
<paraformat jcr:primaryType="nt:unstructured" features="*">
<formats jcr:primaryType="cq:WidgetCollection">
<p jcr:primaryType="nt:unstructured" description="Paragraph" tag="p"/>
<h1 jcr:primaryType="nt:unstructured" description="Heading 1" tag="h1"/>
<h2 jcr:primaryType="nt:unstructured" description="Heading 2" tag="h2"/>
<h3 jcr:primaryType="nt:unstructured" description="Heading 3" tag="h3"/>
<h4 jcr:primaryType="nt:unstructured" description="Heading 4" tag="h4"/>
<h5 jcr:primaryType="nt:unstructured" description="Heading 5" tag="h5"/>
<blockquote jcr:primaryType="nt:unstructured" description="Block Quote" tag="blockquote"/>
</formats>
</paraformat>
参考:
谢谢。
【问题讨论】:
-
你说的配置是什么意思?您希望 RTE 将
blockquote显示为选项,还是希望它允许呈现blockquote?这是两个不同的问题,因此要问。 -
我的意思是允许 RTE 使用
blockquote。 -
在下面查看我的答案。我已经涵盖了这两个问题。如果您需要更多详细信息,请告诉我