ckeditor_readmore
552 sites
Security covered
This module adds a new button to CKEditor which allows users to hide selected content and only show it on "Read more" button click.
Installation
CKEditor Module (Core)
- Enable the module
- Drag and drop the Read More button icon to the CKEditor toolbar in the Text formats you want to use it (admin/config/content/formats)
- Enable the filter Filter readmore
- If you have enabled "Limit allowed HTML tags" filter in Text formats and editors settings, check if you have
<div data-readmore-less-text data-readmore-more-text data-readmore-type class="ckeditor-readmore">present in the "Allowed HTML tags" section. Usually this is added automatically. - Save the text format configuration and clear the cache.
- You can now use it in those Text formats.
Wysiwyg Module (With CKEditor installed)
- Enable the module
- Enable "Limit allowed HTML tags" filter in Text formats and editors settings (admin/config/content/formats).
- Add
<div data-readmore-less-text data-readmore-more-text data-readmore-type class="ckeditor-readmore">in the "Limit allowed HTML tags" section. - Enable "Read more" plugin in Wysiwyg profile settings (admin/config/content/wysiwyg).