We have CKEditor on a Drupal site public.com with the CKEditor module. This site is edited by multiple users from a company which has their webmail at private.com.

When a user recieves a mail on private.com with a link to a page on public.com, clicks on it and edits the page, their CKEditor window doesn't load.

I recreated the problem with Firebug on and i got the following error when the edit page was loading:

Permission denied for < http://public.com> to get property Window.$ from < https://private.com>.

textarea: window.opener.$('#' + Drupal.ckeditorTeaser.lookup[taid]), 

I originally posted this issue on the CKEditor tracker http://dev.ckeditor.com/ticket/5953, but was referred back here

Comments

sydneyshan’s picture

Was this ever resolved, nirbhasa? I'm having the same problem today on a website that has been duplicated from an existing working copy... weird!

nirbhasa’s picture

not yet, but then again the issue is only a couple of days old :)

its interesting that you have it working on one site, and not on its duplicate - perhaps a pasted Firebug error message (if different from the above) could be help

it's worthwhile noting, that for me the window doesnt load only when a link from the private webmail is involved, apart from that it loads fine

sydneyshan’s picture

Luckily I was only starting out on this project when this error occurred - I re-copied my based Drupal 6 installation over the top of the my existing project and the bug went away... No changes to the database were made at all. It must be a permission error or missing/corrupted file issue?

nirbhasa’s picture

Title: CKEditor window not loading when link passed from private site » CKEditor window not loading when link passed from another site

Just an update - I replicated this issue today for 2 public sites (rather than one private and one public). Basically I had public site A open in one tab in Firefox, and when I opened public site B and edited a page the editor failed to load, and I got a similar Firebug message

Permission denied for < http://publicB.com> to get property Window.$ from < http://publicA.com>.
textarea: window.opener.$('#' + Drupal.ckeditorTeaser.lookup[taid]),
Anonymous’s picture

This is bizarre, I also had this happen. I opened a new Firefox tab (I had Google open in another), went to my website, and then when I went to create a story the CKEditor window was gone. The Firefox error console said this:

Error: Permission denied for to get property Window.$ from .
Source File: http://www.vilepickle.com/sites/vilepickle.com/files/js/js_9c7cfe30b88dd...
Line: 34

When I opened a new tab again and went to add a post the problem went away.

Eric B.’s picture

I was having the exact same problem with the exact same Firebug error:
Permission denied for to get property Window.$ from .

Restarting Firefox fixed the issue for me.

psaleks’s picture

For new versions of Drupal and modules you should enable
$cookie_domain = 'example.com';
in settings.php

Use your name of site instead example.com

nirbhasa’s picture

Thanks for the tip! Ill check it out

However, I am using the Domain Access module, and in order to ensure a common signon across all my domains, I need to set the cookie domain to '.example.com' where example.com is my site (note the dot in front)

seehawk’s picture

I ran into this same problem, and restarting Firefox fixed it. I was on version 3.6.16, and when I restarted, it had updated to 3.6.17, so maybe something about the fact that it was between updates was causing JS issues?

mkesicki’s picture

Hi,
can you check if this problem still exists in latest version 6.x-1.3 or DEV ?.

mkesicki’s picture

Status: Active » Postponed (maintainer needs more info)