简体   繁体   English

CKEditor外部文件浏览器

[英]CKEditor external file browser

I'm trying to return file url from external file browser to CKEditor but I'm receiving error which is: 我正在尝试将文件URL从外部文件浏览器返回到CKEditor,但是我收到的错误是:

[09:02:18.038] TypeError: A._.filebrowserSe is undefined @ http://www.xxx.pl/yyy/js/ckeditor/ckeditor.js:56

I'm using this code: 我正在使用此代码:

window.parent.opener.CKEDITOR.tools.callFunction(number,url);

Does anyone know how to solve this issue? 有谁知道如何解决这个问题?

Here is an answer: How can you integrate a custom file browser/uploader with CKEditor? 这是一个答案: 如何将自定义文件浏览器/上载器与CKEditor集成在一起?

You should to receive GET parameter called CKEditorFuncNum. 您应该收到称为CKEditorFuncNum的GET参数。

I use it such way in php: 我在php中这样使用它:

window.parent.CKEDITOR.tools.callFunction(<?=intval($_REQUEST['CKEditorFuncNum'])?>, url, message);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM