Rich Text Editor: how to write from right to left | Community
Skip to main content
Salvatore_Gallo
Level 2
July 2, 2018
Question

Rich Text Editor: how to write from right to left

  • July 2, 2018
  • 3 replies
  • 4717 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

November 30, 2020
how to change fonts !?
Salvatore_Gallo
Level 2
July 2, 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

arunpatidar
Community Advisor
Community Advisor
July 2, 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;

Thanks

Arun

Arun Patidar