首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >AEM RTE阈值插件

AEM RTE阈值插件
EN

Stack Overflow用户
提问于 2016-02-26 23:23:30
回答 1查看 200关注 0票数 0

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

这是我的对话框:

代码语言:javascript
复制
<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>

谢谢!

EN

回答 1

Stack Overflow用户

发布于 2016-07-12 22:46:18

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35655508

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档