Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How do you create a simple plugin for CKEditor that creates a button in the editor that when pressed wraps the marked up text in [tag][/tag]?
I'm using Collapse text and want to create a button that users in my forum can click on to create a simple spoiler-tag like this:
[collapse collapsed]Spoiler text.[/collapse]
How do I turn this function into a button in CKEditor?
Comments
Comment #1
dczepierga CreditAttribution: dczepierga commentedPls open one of the plugins in CKEditor and u will see how to write plugin for CKEditor.
This issue is inactive over 2 months, so i closed it.