I've got some code working as an implementation of the hook:
Pretty much this function and the related JS/Plugin code allows integrating the collapse text markup with rich text editors toolbar buttons.
So far, I've got code working for CKEditor, as a quick plugin that opens a dialog to enter each collapsible text fieldset with 3 fields:
Title, body and classes (optional).
This actually makes the insertion of collapsible text sections much more convenient.
For the moment, I've got that working in a custom module, but I was wondering if anyone would be interested in getting the code either integrated in the module or from a sandbox project.
For now, after enabling the module, it will add a button on the wysiwyg profiles for CKEditor to be selected. Once it's activated in the profile, then it will display the button in the Editor's toolbar, which opens a dialog and adds the right code/markup/syntax in the field.
I'm posting this here, since I'm thinking that ultimately, this could be an interesting and unobtrusive feature to be integrated to the collapse_text module.
Could you please let me know if anyone would be interested in this feature?
I would be glad to post the code here and even happier if you could potentially consider including it in module's code dev releases.
I would greatly appreciate your feedback on this issue and particular feature.
Thanks in advance.