Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2010-06-12 21:34:02
- joel
- Member
- Registered: 2004-11-26
- Posts: 162
Easy image display with Colorbox and hak_tinymce?
Hi everyone!
I need to find a simple way to get colorbox image presentation to work with the hak_tinymce editor. My order of tasks is:
1. Upload image – no spec. cat. needed
2. Insert thumbnail via the imagebrowser in hak_tinymce. The thumb will automatically get permlinked to the large image.
3. Manually assign the class “popup-colorbox” to the image via content_css.css – in this step we simply add colorbox presentation to the image.
I know how to manage step 1 & 3 but need help with #2. My goal is that the client should be able to colorbox-link any single image inserted in the textarea.
Is this possible?
Thanks! :)
Offline
#2 2010-06-16 04:25:34
- joel
- Member
- Registered: 2004-11-26
- Posts: 162
Re: Easy image display with Colorbox and hak_tinymce?
Anyone? Please :)
Offline
#3 2010-06-17 01:02:44
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: Easy image display with Colorbox and hak_tinymce?
My favorite Swiss army knife rah_replace wouldn’t help here as you have to search for rather variable strings of the img url and insert these into the href attribute of the a tag you have to wrap around it. But I’m pretty sure pax_grep will do.
Last edited by uli (2010-06-17 01:06:30)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline