I am trying to add styles to the rteplugins section inside a dialog. I am not using inplace editing and am just using sling:resourceType="cq/gui/components/authoring/dialog/richtext".
I have scoured the aem forum and examples in blogs for a good example of adding and editing the uisettings and popovers in the RTE but nothing completely answers my questions.
General questions I have are as follows:
<rtePlugins jcr:primaryType="nt:unstructured"> <edit jcr:primaryType="nt:unstructured" features="[cut,copy,paste-plaintext]"/> </rteplugins> <uiSettings jcr:primaryType="nt:unstructured"> <cui jcr:primaryType="nt:unstructured"> <inline jcr:primaryType="nt:unstructured" toolbar="[#edit]"> <popovers jcr:primaryType="nt:unstructured"> <edit jcr:primaryType="nt:unstructured" items="[edit#cut,edit#copy,edit#paste-plaintext]" ref="edit"/> </popovers> </inline> </cui> </uiSettings>But this does not work. And changing the toolbar to include the items individually does not work either.
<leftText jcr:primaryType="nt:unstructured" sling:resourceType="cq/gui/components/authoring/dialog/richtext" name="./leftContent" useFixedInlineToolbar="{Boolean}true" externalStyleSheets="/etc/designs/responsive/main/source/css/styles.css"> <rtePlugins jcr:primaryType="nt:unstructured"> <styles jcr:primaryType="nt:unstructured" features="*"> <styles jcr:primaryType="cq:WidgetCollection"> <dark-headline jcr:primaryType="nt:unstructured" cssName="dark-headline" text="Dark Headline"/> </styles> </styles> </rtePlugins> <uiSettings jcr:primaryType="nt:unstructured"> <cui jcr:primaryType="nt:unstructured"> <inline jcr:primaryType="nt:unstructured" toolbar="[#styles]"> <popovers jcr:primaryType="nt:unstructured"> <styles jcr:primaryType="nt:unstructured" items="styles#dark-headline" ref="styles"/> </popovers> </inline> </cui> </uiSettings> </leftText>The css class dark-headline exists in the styles.css file in externalStyleSheets. This file happens to be a minified file but I tried with a non-minified file and it still did not work.
There is little to no information on how to do this. Working with RTE in Touch UI can be very frustrating, specially after being able to easily configure it in Ext.
So, my line of thought is that you may be able to get the dropdown to show the styles same as the paraformats.
In you uiSettings node, I used:
<styles jcr:primaryType="nt:unstructured" items="styles:getStyles:styles-pulldown" ref="styles"/>
And then in my rtePlugins node standard RTE configuration.
<styles jcr:primaryType="nt:unstructured" features="*"> <styles jcr:primaryType="cq:WidgetCollection"> <smalltext jcr:primaryType="nt:unstructured" cssName="smalltext" text="Small Text"/> <urgent jcr:primaryType="nt:unstructured" cssName="urgent" text="Special Color"/> </styles></styles>
The way to use styles in Touch UI is to use inplace editing. You have access to all of the same plug-ins as you do with Ext. The only thing is the author needs to maximize the window.
Views
Replies
Total Likes
Hi smacdonald,
Is it possible to enhance the inline rich text element to include the controls for heading styles and button styles.
in aem 6.3 touchUI.
we need heading styles in tool bar as well as full screen also.
Thanks in advance.
Views
Replies
Total Likes
Hi,
You can refer to this link http://stackoverflow.com/questions/34309445/aem-6-1-enable-rich-text-editor-rte-plugins-on-touch-ui
I have managed to get the my style from the style list on Touch UI.
Hi i am currently working on RTE touch ui plugins and trying to get Quotestyle and disclaimer as tags in paraformat and it does work inplace edit and fullscreen but doesn't render on the page(in both author and preview mode). Please find the attached for the work done
Views
Replies
Total Likes
I was having the same issue today ...This was really helpful.. To summarize. The important things (Styles will appear in touch UI if all the below three are satisfied) to make sure the styles dropdown is appearing is
1) add the styles node under plugin
2) add the styles under uiSettings
3) add the #styles as value to the property "toolbar" in inline/fullscreen node
Thanks
Veena
Thank you Veena_07!! your answer has helped me to resolve my problem with the Touch UI dialog and rich text editor
but css is not visible in results of page
Views
Replies
Total Likes
This was helpful. In addition, under uiSettings -> cui -> inline in order for the popup to show, "#styles" must be added to the string array in the "toolbar" property.
Views
Replies
Total Likes
check here the rich text for aem 6.4 with the all options
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies