Rich Text Editor: how to write from right to left

Avatar

Avatar

Salvatore_Gallo

Avatar

Salvatore_Gallo

Salvatore_Gallo

02-07-2018

Hello everyone,

I have to make the Arabic version of my site.

I need to configure in AEM 6.3 the possibility to write in "Rich Text Editor" from Right to Left.

What is the correct way to do this?

Thanks,

Salvatore

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.0K

Likes

1.1K

Correct Reply

840

Avatar

Arun_Patidar

MVP

Total Posts

3.0K

Likes

1.1K

Correct Reply

840
Arun_Patidar
MVP

02-07-2018

you can achieve this with CSS , which works on both classic and touch UI.

you need to add below CSS rules in RTE editor which load for dialog editing,

you can create your own clientlibs with cq.authoring.dialog category.

  1. text-align: right;
  2. direction: rtl;

Screenshot shows right to left editing and CSS rule.

Note : I added CSS rules just for testing, you need to specify selector which only applies for dialog editing.

If you want global change you can write below:

.coral-RichText {
  1.    text-align: right;
  2.    direction: rtl;

Screen Shot 2018-07-02 at 4.55.08 PM.png

Thanks

Arun

Avatar

Avatar

Salvatore_Gallo

Avatar

Salvatore_Gallo

Salvatore_Gallo

02-07-2018

Sorry but this approach I think is valid for cq5 especially for the classic ui.

Nobody did it on the Touch UI Dialog

Thanks,

Salvatore

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.0K

Likes

1.1K

Correct Reply

840

Avatar

Arun_Patidar

MVP

Total Posts

3.0K

Likes

1.1K

Correct Reply

840
Arun_Patidar
MVP

02-07-2018