Using: Drupal 7.20, with CKEditor 7.x-1.9, and IMCE 7x-1.7 and HTML Purifier 7.x-1.0

I am able to create a link to a PDF and set the target to open in a new window, and it will save correctly once. However, if the page is modified and saved again, the previously linked PDF will now open in the same window. This happens with all of the linked files on the page, so if there are 15 links, all 15 lose their "open in new window" attribute.

I have enabled AllowedFrameTargets, and added _blank, then cleared the caches. No luck. I have also added "target" in the "AllowedAttributes" box under HTML.

Thanks in advance,
Bill

Comments

ezyang’s picture

Does the bug go away if you re-edit with FCK Editor disabled?

wbenney’s picture

Yes, if I disable CKEditor, and just edit the page in html, then save twice it works - even with HTML Purifier enabled again and caches cleared.

However, It also works if I disable HTML Purifier, or if I just change the text format to "Full HTML", so I'm still not certain which of the modules is the true culprit.

ezyang’s picture

I think FCK Editor is changing the HTML in a way that removes/modifies the targets.

heddn’s picture

Status: Active » Postponed (maintainer needs more info)

Please test and confirm per #3

heddn’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Please kindly re-open with additional details. At this point, I'm not able to reproduce the issue.