This module is a simple extension of the Collapse Text module which allows integrating the collapsible text markup with the Wysiwyg module.
It mostly implements: hook_wysiwyg_wysiwyg_plugin($editor) and the rest is pretty much JS related with editors.
At the moment, it only supports CKEditor, but could be extended in the future to also support other Wysiwyg editors.
Pretty much, it allows adding a button in the Rich Text Editor toolbar to provide a more user friendly user interface to insert collapsible text through the markup and syntax defined by the collapse_text module.
[More info about the syntax at: Collapse Text]
Clicking on the "insert collapsible text" button in the wysiwyg toolbar opens an editor's dialog box with separate fields for each of the customizable properties of the Collapse Text module:
collapsible text title
collapsible text body
optional classes
Installation and configuration:
0 - Prerequisite:
a. Requires wysiwyg and collapse_text modules to be installed.
b. Requires CKEditor wysiwyg libraries to be installed.
1 - Download the module and simply put into your contributed modules folder: