Rich Text Editor: how to write from right to left

Avatar

Avatar
Validate 1
Level 2
Salvatore_Gallo
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
Salvatore_Gallo
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Salvatore_Gallo
Level 2

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
Coach
MVP
Arun_Patidar
MVP

Likes

1,444 likes

Total Posts

3,322 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,444 likes

Total Posts

3,322 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
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
Validate 1
Level 2
Salvatore_Gallo
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
Salvatore_Gallo
Level 2

Likes

2 likes

Total Posts

13 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Salvatore_Gallo
Level 2

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
Coach
MVP
Arun_Patidar
MVP

Likes

1,444 likes

Total Posts

3,322 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,444 likes

Total Posts

3,322 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

02-07-2018