RichText Editor paste options in AEM 6.4 Touch UI

Avatar

Avatar

snbaem

Avatar

snbaem

snbaem

15-02-2019

Hello All,

I am trying to use the rte touch ui component in which I want to add paste options that were available as part of Classic UI.

For example as highlighted in below image.

1692298_pastedImage_0.png

I found from Configure the Rich Text Editor  that I can add the 'edit' property and value "*" to include the cut, copy, paste-default, paste-plaintext, paste-wordhtml.

However in Touch UI I am not able to provide all the pasting options but choose from browser, plaintext, or wordhtml to be added as a value for property "defaultPasteMode". (See Configure the Rich Text Editor plug-ins )

How is this achievable in AEM6 6.4 Touch UI? Or in AEM 6.4 Touch UI, can we provide all three pasting options as buttons when the rte dialog is opened?

I noticed that in either of the links I posted above there are no visuals that suggest about the paste buttons in Touch UI rte dialog

Please suggest.

Shubham

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

999

Correct Answer

829

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

999

Correct Answer

829
Arun_Patidar
MVP

05-03-2019

Hi,

You can add those options like below by updating nodes under rtePlugins and uiSettings.

<rtePlugins jcr:primaryType="nt:unstructured">

            <edit

                jcr:primaryType="nt:unstructured"

                defaultPasteMode="plaintext"

                features="[cut,copy,paste-plaintext,paste-wordhtml]"/>

<uiSettings jcr:primaryType="nt:unstructured">

            <cui jcr:primaryType="nt:unstructured">

                <inline

                    jcr:primaryType="nt:unstructured"

                    toolbar="[edit#cut,edit#copy,edit#paste-plaintext,edit#paste-wordhtml

Answers (3)

Answers (3)

Avatar

Avatar

snbaem

Avatar

snbaem

snbaem

05-03-2019

Thanks Arun. This is exactly what I was looking for. I haven't seen "edit#cut,edit#copy,edit#paste-plaintext,edit#paste-wordhtml" addition in inline toolbar in documentation. But now I understand how the syntax might have come by.

Avatar

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281
Gaurav-Behl
MVP

05-03-2019

check if this helps - Configure the Rich Text Editor

Avatar

Avatar

snbaem

Avatar

snbaem

snbaem

05-03-2019

Hi All, Any idea on this issue? I found this Text Component where "Paste as Text" and "Paste from Word" are available as options and buttons are visible how they would look in a Touch UI view.

I checked the core components for the "text" component (v2) but the "rtePlugins" node doesn't seem to have same details.