Have been trying to follow the instructions at http://drupal.org/node/252153 to make Lightbox2 work within the TinyMCE editor, but am either missing something or have encountered a bug.
Basically, we need to add a select to the TinyMCE link editor so that rel="lightframe [|width:850px;height:500px;]" will be added to the <a href> tag. We have been doing this manually in each node's HTML, but would like to make it a part of the link editor.
Following the instructions at http://drupal.org/node/252153 just gets a class name into the TinyMCE editor, but this class is not defined anywhere that I can find and does not trigger the lightbox2 lightframe link attribute. We have added "lightframe" to the custom image trigger classes on the Automatic image handling page, and have added lightframe=lightframe on the TinyMCE CSS classes. The class shows up on the editor but triggers nothing.
How do we get a one-click entry of the rel="lightframe []" attribute into <a href> tags?
Comments
Comment #1
stella commentedThe version you're using, 5.x-2.7, is no longer supported and definitely doesn't support this feature.
However I don't think it will work in 5.x-2.9 either, as the custom class feature described at http://drupal.org/node/252153 is for automatic image handling. This involves adding the custom class to the img tag, not the anchor a tag.
Cheers,
Stella
Comment #2
stella commented