AEM RTE阈值插件

时间:2016-02-26 15:23:30

标签: plugins aem rte

我想限制可以添加到richtext字段中的字符数。有人知道RTE阈值插件是如何工作的吗?它似乎不像那样工作。

这是我的对话:

<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>

谢谢!

1 个答案:

答案 0 :(得分:0)

AEM RTE不支持开箱即用的阈值插件。您的实现似乎已经实现了这样的自定义插件。因此,您需要了解该实现,以了解如何配置字符限制。