| Project: | Collapse Text |
| Version: | 7.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
Hi guys,
I've got some code working as an implementation of the hook:
hook_wysiwyg_wysiwyg_plugin($editor)
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.
Comments
#1
I would definitely be interested in this - this functionality has been requested by a client. I am using collapse_text 7.x-2.4 and wysiwyg 7.x-dev with CKEditor.
#2
Hi claudinec,
Sorry for the slow/late reply but I have been very busy lately, mostly working on some other modules and couldn't find the time to give you an answer. I'm glad to hear I'm not the only one to find this feature interesting or useful.
I've added the module to sandbox: http://drupal.org/sandbox/DYdave/1818438
with all the necessary code so feel free to go ahead and checkout the module [See the version control tab if you need info on the branch and checkout instructions].
Everything should be explained on the project page and the usage of the module should be very straight forward.
Feedback, questions, comments and other contributions would be highly appreciated.
Last note, I'd still be glad to hear if collapse_text maintainers would be interested in adding this feature to the collapse_text module, as mentioned above. That would probably bring more leverage to get more compatibility across wysiwyg libraries (TinyMCE, CKEditor, etc...).
Thanks!
#3
Thanks DYdave, it's working well for us!
#4
Thanks!
it works with cke4 ?
#5
I don't know proweb.ua, I was using it with CKEditor 3.6.
#6
Hi claudinec and proweb.ua,
Sorry for this late reply, but I have started checking on that as soon as I received your messages (4 days ago).
Thanks very much proweb.ua for raising this: it brought to my attention the fact that there was work undergoing to provide support for newer versions of CKEditor... I haven't been following these developments that much and wasn't even aware that CKEditor 4 had a stable release.
Thanks very much claudinec for getting back to proweb.ua on that, I really appreciate your support and feedback.
So pretty much, the reason why I haven't replied yet is because I was waiting to see what was going on in:
Not really/completely relevant, since this one is related with the CKEditor module, which is different from WYSIWYG on which Collapse Text Wysiwyg is based and according to module's maintainer, it seems to be working fine, see: #1748268-7: CKEditor 4 beta and beyond. So I have been following this issue as well to see if we could get any inspiration from it for WYSIWYG.
This is probably the bulk of our issue here: CKEditor 4 support doesn't seem to be stable yet for WYSIWYG.
I am now following this issue with a lot of interest to see if we could get any positive feedback on the support and in particular some patches have already been submitted (on which we would greatly appreciate your feedback for testing).
So I haven't tested myself yet with CKEditor 4, but I would assume that if WYSIWYG still doesn't completely support it, then most likely some issues might happen with Collapse Text Wysiwyg.
As soon as I can see some positive feedback and stabilization of #1853550: Ckeditor 4.0 - The version of CKEditor could not be detected., then I will get that tested on Collapse Text Wysiwyg and get back to you with more information, whether:
In any case, you can be sure that I am following these issues very closely, went ahead and created an issue in Collapse Text Wysiwyg's tracker: #1890908: Support for CKEditor 4. I invite you to follow this issue so that you can get direct feedback if it is updated (for example, status changed to needs work, if there's any problem, or RTBC if anything is fine).
I would certainly greatly appreciate any of your feedback, testing, debugging, comments or questions on any of these tickets, that would greatly contribute to helping all of us moving forward.
Thanks again to all of you for your interest, time and feedback.
Cheers!
#7
Following up with this issue and seeing such interest, I was wondering if you guys would think it could be a good thing or be favorable to adding a link to: Collapse Text Wysiwyg on Collapse Text's project page. Something like:
I would be glad to hear if maintainers or anybody else would think it would be relevant to let users know about this potentially useful integration.
Any feedback, comments, suggestions, questions or further issues would be greatly appreciated.
Changing status to attempt on getting maintainers' attention.
Thanks again to all for your interest and feedback.
#8
Thanks for the update, DYdave. I'll watch those issues about CKEditor 4 too, and try it out on a local dev environment.
#9
Alright guys!
Seems like #1853550-163: Ckeditor 4.0 - The version of CKEditor could not be detected., pretty much got rolled in, at 9cbb01f.
I haven't been able to test Collapse Text Wysiwyg with CKEditor 4.x yet, but would greatly appreciate some feedback if anyone encounters any issue.
Any comments, feedback, questions, suggestions, issues or patches would be highly appreciated.
In particular, if you could please follow-up with some feedback, reviews and testing at #1890908: Support for CKEditor 4, it would be really great and allow me to update issue's status.
Thanks very much to all in advance.
Cheers!
#10
Hi guys,
Following up with a support request at Collapse Text Wysiwyg, #1963958: Is this module going to end up being a full project, I wanted to get back to this issue and more particularly try to attract project maintainers' attention on this feature request.
It seems the Collapse Text Wysiwyg's code has been around for some time (more than 6 months) already, and tested by several users.
Perhaps we could consider having the sandbox integrated/merged to the Collapse Text module.
As an attempt to get the ball rolling, please find attached to this comment a patch against collapse_text-7.x-2.x at 5cd66c9, which merges the code from sandbox Collapse Text Wysiwyg and adds a new feature to the Collapse Text module to provide filter integration with CKEditor.
File attached as: collapse_text-filter-integration-wysiwyg-ckeditor-1793108-10.patch.
The image for the button couldn't be added to the patch, so after applying it, the attached png (button.png) file should be copied and renamed in the folder:
collapse_text/wysiwyg/ckeditor/button.png(next to the new plugin.js file)
We would greatly appreciate if maintainers could potentially take a little bit of time to give us some feedback on whether this feature request could be acceptable/reasonable.
Feel free to let us know if you would have any questions, comments, objections, recommendations, suggestions or concerns on any aspects of this ticket or the attached patch, I would surely be glad to provide more information, explain in further details or re-roll the patch if necessary.
Any feedback, comments, testing, reviews, questions, suggestions, recommendations or objections would certainly be highly appreciated.
Thanks very much to all in advance.
Cheers!
#11
Will this resolve the issue where CKeditor disappears when Collapse Text is installed? For months now, the body field on every Edit page on a client site disappears because there is some conflict between CKeditor and Collapse Text. The only workaround I have found is to force them to toggle the editor from "Full HTML" to "Filtered HTML" and back.
#12
@finedesign:
Thanks very much for your comment.
I'm afraid that's not really the purpose discussed in this feature request.
Patch from #10 adds a button to the CKEditor toolbar (through the Wysiwyg module hook/plugin system) to be more user friendly for editors when adding Collapse Text module's specific tags, for example:
[collapse ....].Therefore, if the editor is not displaying, such as for the case your described, this feature/patch wouldn't change much anyway.
This sounds like a different issue that I would assume should be posted in the corresponding modules (Collapse Text, Wysiwyg, or CKEditor if that's what you have been using), for the corresponding versions.
Additionally, I would recommend that you try looking in these modules' issue trackers, this might be an issue that could already have been resolved in a dev version or with an existing patch.
I hope I was able to answer your questions, but feel free to let us know if I missed or overlooked anything.
Cheers!
#13
Ok, thanks Dave!
#14
Wysiwyg 7.x-2.2+14-dev
CKEditor 4.1.1.5a2a7e3
CKEditor 4.1.0.80c139aa
CKEditor 4.0.3.0eafb700
Collapse Text 7.x-2.4+0-dev + path #10
after click OK, nothing happens

tested in last Opera, Firefox, Chrom and on two different websites and hosting
#15
@proweb.ua
Thanks a lot for reporting this issue.
This has already been well received in #1986878: not work with last CKEditor 4.
Could we potentially keep this discussion/bug/issue out of this ticket?
I think this is not really related with this discussion actually and is more specific to the Collapse Text Wysiwyg module bugs.
I certainly apologize for the delay of a reply on this issue, but I can already reproduce the bug, I have started working on the fixing, but I'm most likely going to need a little bit more time, before I can get back to you on #1986878: not work with last CKEditor 4.
Thanks again very much for your reporting, feedback, testing and very clear screenshots + versions, it is certainly highly appreciated.
Cheers!