Rich Text component in AEM 6.3 touch ui - touch

I knew about xtype richtext for classic ui.
I am working more on touch ui these days and would like to have a rich text component in cq:dialog touch dialog.
Could anyone point me to an example with explanation about the rich text component in aem 6.3 touch ui?
I was looking at the example I do not understand rtePlugins node in _cq_editConfig.xml and I assume basic richtext functionality is provided by _cq_dialog content.xml
What is the different between example2
and example
Thanks.

The rtePlugins node lists configurations for enabled plugins in the RTE. You can use either examples you have in your post to achieve the rich text functionality you are after.
If you are interested in a different form of RTE, checkout this CKEditor widget I built a while back: https://github.com/ahmed-musallam/aem-ckeditor-widget

Related

Rich Text Dialogs for Touch UI in AEM 6.5

I want to create Rich Text dialog in AEM 6.5
I have added the RTE plugins and UI settings but still it is not working.
Please see the attached image of the structure of rich text dialog.
Do we need to write some code or class so that rich text dialogs can work.
Please help.
The best way to figure out if you have done anything wrong is to copy the richtext from /libs/core/wcm/components/text/v1/text/cq:dialog/content/items/tabs/items/properties/items/columns/items/column/items/text to your dialog and check if the RTE is appearing or not. If it is, then compare the one you previously created with this one and figure out what is going wrong.
Always the best approach is to check the OOTB fields structure and compare it with your structure to figure out what is going wrong.
Rich Text Editor in Dialog
It is always better to configure dialogs directly with XML instead of doing it in CRXDE.
To start with you can look into the 'Text Component' dialog which has RTE in its dialog.
Look into the <text>...</text> part in the content.xml of the dialog. Hopefully, you will get a better idea.

Is it possible to create Multifield using coral UI 3 in AEM 6.2?

I have to create Touch UI Dialogs using Coral UI 3. Does Coral UI 3 supports Multifield (with different set of xtypes like Text field, Drop Downs etc..) in AEM 6.2??
Could anyone pls share any reference or example if you have??
You can find a pretty thorough example on adobe help site.
https://helpx.adobe.com/experience-manager/using/htl_multifield62.html

TinyMCE draggable templates

I am using TinyMCE version 4.
I also have a couple of html templates defined in my web project.
Now, I would like to make those templates draggable within textarea, so I would like to keep the style of the template and be able to move drag-and-drop/move it.
Does anybody know if it is achievable by using TinyMCE component?

How to align fieldLabel and textfield as single line in dialog in AEM 6.3

How to align fieldLabel and textfield as single line in dialog in AEM 6.3? But in AEM 6.2 it's showing Single line FieldLabel and Textfield.
Please find attachments AEM 6.2
AEM 6.3
Like you, I was wondering about that. I have looked over every documentation from Adobe, found nothing that suggests that it's possible.
If you look at 6.1 dialog source, you'll see the form has coral-Form--aligned when in floating mode and coral-Form--vertical in fullscreen.
in 6.3 dialogs, it's always coral-Form--vertical
Also, if you look at the dialog JSP, in 6.3, at this path: /libs/cq/gui/components/authoring/dialog/dialog.jsp you'll see that they add coral-Form--vertical by default and there are no properties to change that behavior.
So, it seems Adobe will keep the dialog style as vertical.
I don't recommend the following, but it is mentioned because it's possible:
If you really really want to force "aligned", you'll have to write a simple script to add coral-Form--aligned to the dialog form and remove coral-Form--vertical, I tried that, and it results in an unpleasant UI (see screenshot) that needs a few CSS fixes.

AEM page with rich text and image

I am using AEM 6.0 and want authors to create page using a template having
Page headline
Page sub headline
Page rich text
An image
Page rich text
Similar page - Page with image & RTE
I am planning to use AEM RTE for rich text and as RTE does not provide any option to inset image, i can do one of these
Upgrade RTE to embed image but it will have issues with responsiveness
Create page with multiple RTE and image components to render above output.
Does anyone know best way to achieve this?
For a fixed layout with responsive capabilities you are better off using templates just for simplicity. By fixed layout I am assuming your page will have fixed content location for images and text (guessing from your template details)
Modifying RTE for responsive image insertion on an arbitrary location will not render a good HTML unless you override a lot of RTE functionality. This will be a pain and counter-productive for the use case.
A mid-way alternative is to make a custom image with text (text and image control) where you allow the user to enter text and select and image separately and then provide additional layount options (image position) and responsive customisation.
One more flexible option is to use acs-commons grid layout control to use different text and image controls while letting a grid based css framework (e.g. bootstrap) take care of responsive aspects of the site.
Hope these ideas help you.