我想限制可以添加到富文本字段中的字符数。有人知道RTE thresholds插件是如何工作的吗?它似乎不是那样工作的。
这是我的对话框:
<headline
jcr:primaryType="cq:Widget"
fieldLabel="Headline"
name="./headline"
xtype="richtext">
<rtePlugins jcr:primaryType="nt:unstructured">
<thresholds
jcr:primaryType="nt:unstructured"
thresholds="[20;yellow,25;red]"/>
<misctools
jcr:primaryType="nt:unstructured"
features="[specialchars]">
</misctools>
<spellcheck
jcr:primaryType="nt:unstructured"
features="[checktext]"/>
<justify
jcr:primaryType="nt:unstructured"
features="[]"/>
<lists
jcr:primaryType="nt:unstructured"
features="[]"/>
<links
jcr:primaryType="nt:unstructured"
features="[modifylink,unlink]"
name="./links1"/>
</rtePlugins>
</headline>谢谢!
发布于 2016-07-12 22:46:18
AEM RTE不支持开箱即用的阈值插件。您的实现似乎已经实现了这样一个自定义插件。因此,您需要查看该实现,以了解如何配置字符限制。
https://stackoverflow.com/questions/35655508
复制相似问题