I think it'd be great if Colorbox could integrate with WYSIWYG's Link feature.

All you'd need to do is add a checkbox to the Link popup for enabling Colorbox, and possibly some fields for setting the width and height (see attached).

Then users could create a link to page or file, tick the box, and Colorbox would automatically add the 'colorbox-load' class to the link tag and append '?width=x&height=y' to the link URL.

CommentFileSizeAuthor
colorbox_wysiwyg.jpg30.5 KBBWPanda
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

frjo’s picture

I'm not using Wysiwyg editors myself so this is not something I will spend any time on.

If someone else contribute a nice looking patch I would be happy to commit it.

SilviuChingaru’s picture

+1 to this

lsolesen’s picture

@fiftyz - please use the follow button in the upper right corner instead of a comment when you want to follow an issue.

SilviuChingaru’s picture

I know, I know... sorry, I just wanted to say that is a wanted feature. I can make a patch if you like but I don' t know were link classes are located and I don't have so much time right now to read the module's source code. Do you know a file to look for them?

frjo’s picture

Status: Active » Postponed
Neslee Canil Pinto’s picture

Issue summary: View changes
Status: Postponed » Closed (won't fix)