如何扩展富文本编辑器表

时间:2014-10-09 12:29:56

标签: cq5 rte

我在表格组件中使用rtePlugin Table

 <items jcr:primaryType="cq:WidgetCollection">
            <tableData jcr:primaryType="cq:Widget" name="./data"
                       xtype="tableedit2">
                <rtePlugins jcr:primaryType="nt:unstructured">
                    <table jcr:primaryType="nt:unstructured">
                        <defaultValues jcr:primaryType="nt:unstructured"
                                       border="{String}0" width="{String}97%" />
                    </table>

                </rtePlugins>
                <linkbrowseConfig jcr:primaryType="nt:unstructured"
                                  cssExternal="rte_ext_link" cssInternal="rte_int_link" />
            </tableData>
            <tableHeaders jcr:primaryType="cq:Widget" hideLabel="true"
                          name="./tableHeaders" type="checkbox" xtype="selection">
                <options jcr:primaryType="cq:WidgetCollection">
                    <t jcr:primaryType="cq:Widget" text="make the first line as header"
                       value="true" />
                </options>
            </tableHeaders>
        </items>

现在我希望有一个选项可以将第一行作为标题(请参阅上面代码中的options tag并查看截屏enter image description here

我希望当我勾选复选框marke the first line as header时,我的对话框中表格的第一行被标记为标题。如何通过单击复选框将对话框表中的第一行作为标题进行销售?我不知道如何访问表格单元格。

0 个答案:

没有答案
相关问题