You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The original page is under an account, and I don't feel comfortable sharing my creds, so here's two pages that I can reproduce this with: cke.html.gz and re.html.gz
Screen shot
Description
My school's management system uses readonly CKEditor instances peppered around the site to display user-generated content, but Link Hints does not hint any links inside those CKEditor instances. I've more or less recreated what they've done in cke.html, and I've reproduced the bug with only vanilla JS in re.html by looking through CKEditor's source code.
It seems like iframe.contentDocument.write(...) gets rid of Link Hints' event listeners, as you can see here:
If i replace iframe.contentDocument.write(...) with iframe.contentDocument.body.innerHTML = ... (and remove the open(...)/close() lines), Link Hints can see the links inside:
As far as I remember, I had the same problems both in Firefox and Chrome.
I haven’t changed anything in Link Hints, so something must have changed in Firefox and Chrome. Weird! But should be fixable after a debugging session.
URL
The original page is under an account, and I don't feel comfortable sharing my creds, so here's two pages that I can reproduce this with: cke.html.gz and re.html.gz
Screen shot
Description
My school's management system uses readonly CKEditor instances peppered around the site to display user-generated content, but Link Hints does not hint any links inside those CKEditor instances. I've more or less recreated what they've done in cke.html, and I've reproduced the bug with only vanilla JS in re.html by looking through CKEditor's source code.
It seems like
iframe.contentDocument.write(...)
gets rid of Link Hints' event listeners, as you can see here:If i replace
iframe.contentDocument.write(...)
withiframe.contentDocument.body.innerHTML = ...
(and remove theopen(...)
/close()
lines), Link Hints can see the links inside:Debug info
Debug info
The text was updated successfully, but these errors were encountered: