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

How to do full justify in RTE

Avatar

Avatar
Validate 1
Level 2
CT1012
Level 2

Likes

7 likes

Total Posts

67 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 2
CT1012
Level 2

Likes

7 likes

Total Posts

67 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
CT1012
Level 2

06-08-2018

How to do full justify(justify on both left and right) in RTE apart from

justify#justifyleft

justify#justifycenter

justify#justifyright

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,358 likes

Total Posts

3,228 posts

Correct Reply

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

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,358 likes

Total Posts

3,228 posts

Correct Reply

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

07-08-2018

Hi,

OOTB you can do justify left, right and centre. which basically add inline style text-align:<value>. e.g. text-align:left

You can modify existing plugin and add one more option/type alignment which is text-align:justify

Thanks

Arun

Answers (3)

Answers (3)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,358 likes

Total Posts

3,228 posts

Correct Reply

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

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,358 likes

Total Posts

3,228 posts

Correct Reply

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

08-08-2018

HI,

You should be using granite UI rather than coarl2.

/libs/clientlibs/granite/richtext/core/js/plugins/JustifyPlugin.js is the plugin file but you need to add extra plugin option in dialog jsp file as well.

/libs/dam/cfm/admin/components/authoring/contenteditor/toolbar/toolbar.jsp

Thansk

Arun

Avatar

Avatar
Boost 1
Level 1
Hafizur-Rahman
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
Hafizur-Rahman
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
Hafizur-Rahman
Level 1

22-04-2021

Just use :

justify#justifyjustify

It worked for me well.

Avatar

Avatar
Validate 1
Level 2
CT1012
Level 2

Likes

7 likes

Total Posts

67 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 2
CT1012
Level 2

Likes

7 likes

Total Posts

67 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
CT1012
Level 2

08-08-2018

Thanks for the response

Which one should i be using for existing plugin js, both carry the same code( i tried coralui2 path)

/libs/clientlibs/granite/richtext/core/js/plugins/JustifyPlugin.js

/libs/cq/ui/coralui2/rte/core/plugins/JustifyPlugin.js

Within the JS is this the correct way to add justify full

'justify': {

              'title': CUI.rte.Utils.i18n('plugins.justify.fullTitle'),

              'text': CUI.rte.Utils.i18n('plugins.justify.fullText')

            }

Please suggest

TIA