Download & Extend

Switching to TinyMCE sets lightbox to true and fixed height and width.

Project:ImageField Assist
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

I have several input formats, of which some do not have a WYSIWYG profile and other have TinyMCE. When content is created using a plain text area, the code is like:

[imagefield_assist|fid=115908|title=|desc=|link=node|align=|preset=screen_thumb_small]

When I switch to TinyMCE and back, the code becomes:

[imagefield_assist|fid=115908|preset=screen_thumb_small|lightbox=true|title=|desc=|link=node|align=|width=158|height=118]

The most important thing for me is that lightbox is suddenly set to true.

Comments

#1

Status:active» needs review

The attached patch fixes this problem for me.

AttachmentSize
1327010-reading-the-lightbox-value.patch 2.5 KB

#2

Made a small mistake.

AttachmentSize
1327010-reading-the-lightbox-value-2.patch 2.62 KB

#3

I was having a similar issue, when I added a link to an imageassist inserted image it was adding a lightbox to them and I ended up with an "a" tag inside another "a" tag.

This patch fixed it for me as well,
Thanks!