Opened 11 years ago

Last modified 11 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@…

Description

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

Evaluation happens properly.

1) On IE, go to http://ckeditor.com/demo; 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 11 years ago by David

Cc: dka@… added

comment:2 Changed 11 years ago by Jakub Ś

Status: newconfirmed
Version: 4.0.33.0

I believe this is based on this blog post: http://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/

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