2016-02-26 35 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插件。你的實現似乎已經實現了這樣一個自定義插件。因此,您需要查看該實現以瞭解如何配置字符限制。