Opened 11 years ago

Closed 10 years ago

#10334 closed Bug (expired)

Getting CKEditor to work in the Windows 8 webview

Reported by: Anna Tomanek Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0
Keywords: Cc:


Reported on the community forum:

When accessing CKEditor from within a webview in a Windows 8 app, the editor fails to load completely. With some assistance from an MS Evangelist, we tracked down the issue and I thought I'd post the fix here for posterity:

In the Web Control (and not in IE 10 or anywhere else), the document.domain property is URL-encoded, turning "test.package" into "test%2package"... Consequently, the check "document.domain == window.location.hostname" fails and editor and controls end up in different origins.

To work around this issue, open ckeditor.js, search for "var a=document.domain" and change it into "var a=unescape(document.domain)".

Change History (4)

comment:1 Changed 11 years ago by Mike Fayer

I should add that that this problem only occurs if there's a period in the package name of the app.

comment:2 Changed 11 years ago by Jakub Ś

@tempy is there any chance you could provide reduced sample application showing this problem? I can see solution but it would be nice if you could show us working code that is causing problems first :)

comment:3 Changed 11 years ago by Jakub Ś

Status: newpending

I have tried looking for code like var a=document.domain or document.domain == window.location.hostname. We have something similar in env.js file but it isn't the same. Could you explain exactly what file(s) have you changed in CKEditor so that other users could know?

The same message was posted on forum.

comment:4 Changed 10 years ago by Jakub Ś

Resolution: expired
Status: pendingclosed
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