2016-02-26 63 views
0

我想限制可以添加到richtext字段的字符数。有人知道RTE阈值插件是如何工作的?它似乎并没有像那样工作。AEM 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> 

谢谢!

回答

0

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