How are you looking to integrate it? If you are looking for it to be available on the end page, then I would just do some sort of post processing.
For instance, just include the scripts when you save the data (if you're not using fullPage, should be simple to just tack on the required javascript and style sheets).
Reading up on implementing lightbox, it looks like the key is the scripts (obviously) but most importantly the rel attribute of various links to images.
CKEditor supports attributes just fine, so as long as you keep a consistent format of the rel attribute it should function correctly.
As I noted in my earlier post, the key to lightbox is the rel attribute. You can hop into Source view and easily add the necessary attribute. Otherwise, you could probably search (or write) a plugin to allow you to easily generate the necessary html in a more dynamic way.
Or you could just have some sort of header file (PHP) or master page (ASP.NET) that would supply the necessary scripts and css while automatically generating a list of the files on the sites themselves. That is, assuming that the site's images are all in one folder, it is relatively simple to implement this type of behavior.
Yes i Know that the Main Part is the nessary Attribut but where can i edit the source that eveytime when i Insert an Image the attribut is also inserted?
If you really must have it done in CKEditor, I guess I would start with adding an event handler for the insertHtml event. I will try and come up with an example tonight for you, but as for now it seems that testing that event and seeing if it was an image link and then manipulating it by adding the necessary rel attribute.
I wrote a plugin to add a link attribute rel and title to lightbox (this is my slimbox but the meaning the same). Is added to the editor just like any plugin to throw a folder in the plugins and add a button to config.js
Re: Lightbox
Re: Lightbox
How are you looking to integrate it? If you are looking for it to be available on the end page, then I would just do some sort of post processing.
For instance, just include the scripts when you save the data (if you're not using fullPage, should be simple to just tack on the required javascript and style sheets).
Reading up on implementing lightbox, it looks like the key is the scripts (obviously) but most importantly the rel attribute of various links to images.
CKEditor supports attributes just fine, so as long as you keep a consistent format of the rel attribute it should function correctly.
Re: Lightbox
I use ckeditor to create sites for a web site and all Images of one Site schould be in a group
so when look the lightbox homeage it should be:
<a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
<a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>
Re: Lightbox
Or you could just have some sort of header file (PHP) or master page (ASP.NET) that would supply the necessary scripts and css while automatically generating a list of the files on the sites themselves. That is, assuming that the site's images are all in one folder, it is relatively simple to implement this type of behavior.
Re: Lightbox
Re: Lightbox
Re: Lightbox
are there some new informations?
Re: Lightbox
download plugin: slimbox.zip
P.S. Sorry for my English, I am from Russia))
Attachments:
Thanks
@dns: bolsho spasiba za plugina :)) it is very simple and very useful
AusIMS
Sorry, I don't know about lightbox or slimbox.
Lightbox
I only see Lightbox code single, I no see Lightbox in CKEditor