Following is my widget code for RTE
<richText
jcr:primaryType="cq:Widget"
fieldLabel="Rich text"
name="./richText"
xtype="richtext">
<rtePlugins jcr:primaryType="nt:unstructured">
<table
jcr:primaryType="nt:unstructured"
features="[table,removetable,insertrow,removerow,insertcolumn,removecolumn]"
defaultValues="{'cellspacing':'0','cellpadding':'1','border':'1','columns':'10','rows':'4','header':'none'}"/>
</rtePlugins>
When I create a table , I dont see defaultValues are getting applied to the table.
Is there something wrong with syntax or I am missing more than that ?
Solved! Go to Solution.
Views
Replies
Total Likes
I was able to use default Values in following way :
<rtePlugins jcr:primaryType="nt:unstructured">
<table
jcr:primaryType="nt:unstructured"
features="[table,removetable,insertrow,removerow,insertcolumn,removecolumn]">
<defaultValues
jcr:primaryType="nt:unstructured"
height="400"
width="700"
cellspacing="2"
cellpadding="2"
header="top"/>
</table>
<misctools
jcr:primaryType="nt:unstructured"
features="*"/>
</rtePlugins>
Views
Replies
Total Likes
I dont see any property called 'defaultValues' for table . refer [1] https://docs.adobe.com/docs/en/aem/6-1/administer/operations/page-authoring/rich-text-editor.html#St... (Tables and Table Cells)
you can use 'TableStyles' or 'CellStyles' to mention the same.
Views
Replies
Total Likes
I was able to use default Values in following way :
<rtePlugins jcr:primaryType="nt:unstructured">
<table
jcr:primaryType="nt:unstructured"
features="[table,removetable,insertrow,removerow,insertcolumn,removecolumn]">
<defaultValues
jcr:primaryType="nt:unstructured"
height="400"
width="700"
cellspacing="2"
cellpadding="2"
header="top"/>
</table>
<misctools
jcr:primaryType="nt:unstructured"
features="*"/>
</rtePlugins>
Views
Replies
Total Likes
great !! Thanks for sharing
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies
Views
Likes
Replies