Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Rich Text Editor: how to write from right to left

Avatar

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

Avatar

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

Avatar

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



Arun Patidar