Opened 10 years ago

Last modified 10 years ago

#10468 confirmed Bug

[IE] Presence of CK Editor blocks scripts from properly loading with //@ sourceUrl on IE

Reported by: David Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc: dka@…


1) On IE, go to any site; in console, type eval("slashslash@ a").

Evaluation happens properly.

1) On IE, go to; in console, type eval("slashslash@ a")

Evaluation breaks as IE tries to evaluate a and fails.

This breaks us when we attempt to load scripts since we use the slashslash@ sourceURL=xxxx.js trick to evaluate scripts in their separate files. Our current workaround is not doing this sourceUrl evaluation on IE, but it would be nice to understand why eval behaves differently with CK Editor on the page.

slash == / (for some reason, a double slash does not render in the editor)

Change History (2)

comment:1 Changed 10 years ago by David

Cc: dka@… added

comment:2 Changed 10 years ago by Jakub Ś

Status: newconfirmed

I believe this is based on this blog post:

I have tried below sample code and on page where editor is used and since CKE 3.0 "foo is always undefined"

eval("//@ sourceURL=foo.js");

This is happening in both VKE 3.x and 4.x

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy