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
Comment #1
ezyang CreditAttribution: ezyang commentedDoes the bug go away if you re-edit with FCK Editor disabled?
Comment #2
wbenney CreditAttribution: wbenney commentedYes, 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.
Comment #3
ezyang CreditAttribution: ezyang commentedI think FCK Editor is changing the HTML in a way that removes/modifies the targets.
Comment #4
heddnPlease test and confirm per #3
Comment #5
heddnPlease kindly re-open with additional details. At this point, I'm not able to reproduce the issue.