Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Adding Table Style to the Rich Text Editor

dnelson42
Level 2
Level 2

I have CQ5.6 and I have been trying to follow the directions on how to add Styles (Tables and Table Cells), however I have had no luck. I have a custom text component and I have added the following to the dialog.xml but I cannot get this to appear in either the the cell properties or table properties dialog in the rich text editor. Can anyone tell me what I am doing wrong?
 

<table jcr:primaryType="nt:unstructured" features="*"> <tableStyles jcr:primaryType="cq:WidgetCollection"> <threeColPadded jcr:primaryType="nt:unstructured" cssName="tbl-three-col-padded" text="3 column padded"/> </tableStyles> <cellStyles jcr:primaryType="cq:WidgetCollection"> <cell33pct jcr:primaryType="nt:unstructured" cssName="cell-33pct" text="Cell 33%"/> </cellStyles> </table>
1 Accepted Solution
Sham_HC
Correct answer by
Level 10
Level 10

File daycare and ask for patch CUI-438  After installing the patch Should resolve the issue.

View solution in original post

0 Replies
smacdonald2008
Level 10
Level 10

Another issue you may have is CQ cannot find your CSS style as described here:

http://dev.day.com/docs/en/cq/5-6/administering/configuring_rich_text_editor.html#Specifying the Location of Your Stylesheet

dnelson42
Level 2
Level 2

Yes I have done that. In this particular text component most plugins have been activated, including tables features="*". I can create a table, and alter its properties, etc but the table and cell styles do not display in the dialogs anywhere.

dnelson42
Level 2
Level 2

I have also specified the style sheets, for example. The dialog is pretty much a copy of the foundation text component dialog with all of the plugins enabled.

<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:primaryType="cq:Dialog" helpPath="en/cq/current/wcm/default_components.html#Text" title="Text" xtype="tabpanel"> <items jcr:primaryType="cq:WidgetCollection"> <tab1 jcr:primaryType="cq:Widget" anchor="100%" title="Text" xtype="panel"> <items jcr:primaryType="cq:WidgetCollection"> <text jcr:primaryType="cq:Widget" hideLabel="{Boolean}true" externalStyleSheets="[/etc/designs/clinic/clientlibs/css/bootstrap.css,/etc/designs/clinic/clientlibs/css/typography.css,/etc/designs/clinic/clientlibs/css/skin.css]" name="./text" xtype="richtext"> <rtePlugins jcr:primaryType="nt:unstructured"> <edit jcr:primaryType="nt:unstructured" features="*"/> <findreplace jcr:primaryType="nt:unstructured" features="*"/> <format jcr:primaryType="nt:unstructured" features="*"/> <image jcr:primaryType="nt:unstructured" features="*"/> <misctools jcr:primaryType="nt:unstructured" features="*"/> <paraformat jcr:primaryType="nt:unstructured" features="*"/> <spellcheck jcr:primaryType="nt:unstructured" features="*"/> <subsuperscript jcr:primaryType="nt:unstructured" features="*"/> <table jcr:primaryType="nt:unstructured" features="*"> <tableStyles jcr:primaryType="cq:WidgetCollection"> <threeColPadded jcr:primaryType="nt:unstructured" cssName="tbl-three-col-padded" text="3 column padded"/> </tableStyles> <cellStyles jcr:primaryType="cq:WidgetCollection"> <cell33pct jcr:primaryType="nt:unstructured" cssName="cell-33pct" text="Cell 33%"/> </cellStyles> </table> <undo jcr:primaryType="nt:unstructured" features="*"/> <styles jcr:primaryType="nt:unstructured" features="*"> <styles jcr:primaryType="cq:WidgetCollection"> <box_shadow jcr:primaryType="nt:unstructured" cssName="box-shadow" text="Box Shadow"/> <collapsed jcr:primaryType="nt:unstructured" cssName="collapsed" text="Collapsed"/> <block-bottom-spacing jcr:primaryType="nt:unstructured" cssName="block-bottom-spacing" text="Block bottom spacing" /> <smalltext1 jcr:primaryType="nt:unstructured" cssName="smalltext" text="Small 1" /> <smalltext2 jcr:primaryType="nt:unstructured" cssName="smalltext2" text="Small 2" /> <bigtext jcr:primaryType="nt:unstructured" cssName="bigtext" text="Big" /> <biggesttext jcr:primaryType="nt:unstructured" cssName="biggesttext" text="Big" /> </styles> </styles> <links jcr:primaryType="nt:unstructured"> <linkDialogConfig jcr:primaryType="nt:unstructured" height="{Long}316"> <linkAttributes jcr:primaryType="cq:WidgetCollection"> <linkAdvanced jcr:primaryType="cq:Widget" collapsed="{Boolean}true" collapsible="{Boolean}true" inputValue="advanced" name="./linkdialog/cq:adhocLinkTrackingTab" title="Link tracking" xtype="dialogfieldset"> <items jcr:primaryType="cq:WidgetCollection"> <enable jcr:primaryType="nt:unstructured" attribute="enabletracking" fieldDescription="override analytics framework settings" fieldLabel="Custom link tracking" name="./linkdialog/cq:adhocLinkTrackingEnableTracking" xtype="checkbox"> <listeners jcr:primaryType="nt:unstructured" check="function(component){var dlg=component.findParentByType('rtelinkdialog');dlg.enableSCFields(component.checked);}"/> </enable> <events jcr:primaryType="nt:unstructured" attribute="adhocevents" fieldDescription="e.g.: event2, event7" fieldLabel="Include SiteCatalyst events" name="./linkdialog/cq:adhocLinkTrackingEvents" xtype="textfield"/> <evars jcr:primaryType="nt:unstructured" attribute="adhocevars" fieldDescription="e.g.: eVar1: pagedata.url, prop4: 'const'" fieldLabel="Include SiteCatalyst variables" name="./linkdialog/cq:adhocLinkTrackingEvars" xtype="textfield"/> </items> </linkAdvanced> </linkAttributes> </linkDialogConfig> </links> </rtePlugins> </text> <isRichTextFlag jcr:primaryType="cq:Widget" ignoreData="{Boolean}true" name="./textIsRich" value="true" xtype="hidden"/> </items> </tab1> <tab2 jcr:primaryType="cq:Widget" xtype="componentstyles"/> </items> </jcr:root>
Sham_HC
Correct answer by
Level 10
Level 10

File daycare and ask for patch CUI-438  After installing the patch Should resolve the issue.

View solution in original post