AEM CQ Richtext xtype

时间:2016-10-27 06:54:06

标签: xml cq5 aem richtext xtype

我有自定义RTEplugin。对于dailog.xml,它的工作原理如下:

<RTE
    jcr:primaryType="cq:Widget"
    fieldLabel="rte"
    name="./rte"
    xtype="richtext">
    <listeners
      jcr:primaryType="nt:unstructured"
      destroy="function() {this.el.dom={};}"/>
    <rtePlugins
      jcr:primaryType="cq:Widget"
      path="/apps/components/content/rteconfig/rtePlugins.infinity.json"
      xtype="cqinclude"/>
</RTE>

但是我应该在JS上替换它: 我会尝试做类似的事情:

var rte = {
                fieldLabel: 'rte',
                name: 'rte',
                xtype: 'richtext',
                listeners: {
                    destroy: function(){
                        this.el.dom={};
                    }
                },
                rtePlugins : {
                    path: '/apps/components/content/rteconfig/rtePlugins.infinity.json',
                    xtype:'cqinclude'
                }
            };

但它不起作用 - 路径尚未应用。也许有人知道?它被错误地声明了路径或被错误地声明为插件

0 个答案:

没有答案