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
BedrockMission!

Learn more

View all

Sign in to view all badges

Rich Text Editor: how to write from right to left

Salvatore_Gallo
Level 2
Level 2

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

4 Replies
Salvatore_Gallo
Level 2
Level 2

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

Arun_Patidar
Community Advisor
Community Advisor

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