D
D
Den Alex Smith2015-05-08 23:49:23
JavaScript
Den Alex Smith, 2015-05-08 23:49:23

CKEditor - cross-domain file upload with KCFinder, what could be wrong?

There is a domain on which the CKEditor script is located: engine.domain.com
There are subdomains that use this script: like subdomain.domain.com

The KCFinder plugin is attached to CKEditor (the first two letters are not confused) for uploading files.

There are no problems with loading. Problem with inserting file into text. Double clicking on a file in the manager raises the following error: Uncaught TypeError: Cannot read property 'tools' of

undefined

if (_.opener.name == "ckeditor") {
        _.opener.CKEDITOR.tools.callFunction(_.opener.CKEditor.funcNum, fileURL, "");
        window.close();
}


What could be the problem? Who faced, maybe?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question