Add classes on element read more

Created on 25 June 2024, 6 months ago

Hello,

As part of a project, I had to use your module. To comply with the site's graphic charter, I had to add classes to the "Read more" and "Show less" buttons.

I propose to add the possibility of adding a list of classes in the plugin configuration, which will be placed in a dataset and then will be applied to buttons or links.

I've also corrected the button or link choice which was not taken into account due to the fact that element.dataset['readmore-type'] returned an undefined value in the ckeditor-readmore.js file. Because of that the element was displayed as a link. Code replaced by element.dataset.readmoreType

📌 Task
Status

Active

Version

3.0

Component

Code

Created by

🇫🇷France Gmaheux

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024