RTE Custom styles plugin- issue with style selection check mark

Avatar

Avatar

Aem_Rockstar

Avatar

Aem_Rockstar

Aem_Rockstar

25-02-2019

I have created a custom style plugin in rte. For OOTB style plugin when selection is made and saved it can be viewed even after dialog is closed and opened again. But for the custom plugin when style is selected and saved, when we opened back we are unable to see which style is selected. Please find the pictures below.

1698703_pastedImage_0.png

1698821_pastedImage_1.png

In the first case i have selected h2 center alignment. Even if the dialog is opened and saved authors can see that. But in second case Avenir 13 is selected the style is getting applied but authors when they come back and see they aren't able to see which selection is it. Can some one please help with it?

Replies

Highlighted

Avatar

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281
Gaurav-Behl
MVP

25-02-2019

the issue is probably with your custom code plugin where you've missed out this configuration.

you'd have to share code otherwise debug OOB implementation to find out the gaps.

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

26-02-2019

I asked our touch ui team to give input here. They said look here as an example - http://experience-aem.blogspot.com/2018/04/aem-64-add-blockquote-plugin-to-content-fragment-rte.html