Recently Browsing 0 members
No registered users viewing this page.
I stumbled upon a (really small) problem while I was trying something relatively simple (as I thought):
I was adding a resized image with CKEditor (same thing goes for TinyMCE) and checked the option to add a link to the full-sized version. So far so good. The next step for me was to make the full-sized version popping up if someone is clicking on the image (on the front-end of course). So I used fancybox to make this happen. But then I got stuck because as it looks like the anchor-tag has to have some css-class or id to indicate the fancybox-script that this image has to be fancyboxed.
I'm pretty sure this is also possible without any id or class. But this is not my point. My point is that it should be possible to add a class to every image that was included with the ProcessPageEditImageSelect (which is used by both CKEditor and TinyMCE to insert an image).
This module is already configurable. I suggest to add another configuration-item named somewhat link-class that would be empty by default.
But if someone, like me, wants to add a css-class to every linked image, he/she could simply set a class name...
What do you think about it? I know, it's a really small change, but maybe some people could benefit on that.
I was thinking of editing the ProcessPageEditImageSelect so it behaves like I said, but I'm feeling a bit uncomfortable hacking on core modules (problems on updates and so on)... What is your opinion on that?
I´m using CKEditor as an inline editor on the front-end. Now I need to call the ProcessPageEditImageSelect dialog when the CKEditor image button is pressed, just like when using the editor in the back-end. (Right now the standard CKEditor image dialog comes up.)
Does anyone know how to integrate ProcessPageEditImageSelect here? Thank you!