我无法回复 window.parent.CKEDITOR.tools.callFunction() vb.net
I can't response a window.parent.CKEDITOR.tools.callFunction() vb.net
我尝试创建一个自定义页面来从 CKEditor 上传文件,但我收到以下错误
我在 vb.net
中使用此代码
Dim Mensaje As String = ""
Mensaje = "<scr" + "ipt type='text/javascript'> window.parent.CKEDITOR.tools.callFunction(" + funcNum + ", '" + url + "', '')</scr" + "ipt>"
Response.Write(Mensaje)
我的 config.js 文件:
/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
config.language = 'es';
//config.toolbarCanCollapse = true;
config.uiColor = '#FFFFFF';
config.height = 500;
config.filebrowserUploadUrl = '/Pages/HE/SHE00000/UploadCKEditorFiles.aspx?type=Files';
config.filebrowserImageBrowseUrl = '/Pages/HE/SHE00000/UploadCKEditorFiles.aspx?type=Image';
config.filebrowserFlashBrowseUrl = '/Pages/HE/SHE00000/UploadCKEditorFiles.aspx?type=Flash';
config.toolbarGroups = [
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'clipboard', groups: [ 'undo', 'clipboard' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
{ name: 'forms', groups: [ 'forms' ] },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
{ name: 'links', groups: [ 'links' ] },
{ name: 'insert', groups: [ 'insert' ] },
'/',
{ name: 'styles', groups: [ 'styles' ] },
{ name: 'colors', groups: [ 'colors' ] },
{ name: 'tools', groups: [ 'tools' ] },
{ name: 'others', groups: [ 'others' ] },
{ name: 'about', groups: [ 'about' ] }
];
config.removeButtons = 'PasteFromWord,Templates,About,Save,Form,Iframe';
};
我不知道如何等待我的回复才能获得有效回复。
如果我在控制台中 运行 解码,运行 没问题,但如果我使用 response.write,我会收到该错误。
我阅读了 this tutorial 的内容。
Details:
浏览器:Chrome 65 和 Firefox 59
OS: Windows 8.1 专业版
CKEditor 版本:4.9.1
Github中的问题是这样的:https://github.com/ckeditor/ckeditor-dev/issues/1894
Github 中的问题已解决:https://github.com/ckeditor/ckeditor-dev/issues/1894
我尝试创建一个自定义页面来从 CKEditor 上传文件,但我收到以下错误
我在 vb.net
中使用此代码Dim Mensaje As String = ""
Mensaje = "<scr" + "ipt type='text/javascript'> window.parent.CKEDITOR.tools.callFunction(" + funcNum + ", '" + url + "', '')</scr" + "ipt>"
Response.Write(Mensaje)
我的 config.js 文件:
/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
config.language = 'es';
//config.toolbarCanCollapse = true;
config.uiColor = '#FFFFFF';
config.height = 500;
config.filebrowserUploadUrl = '/Pages/HE/SHE00000/UploadCKEditorFiles.aspx?type=Files';
config.filebrowserImageBrowseUrl = '/Pages/HE/SHE00000/UploadCKEditorFiles.aspx?type=Image';
config.filebrowserFlashBrowseUrl = '/Pages/HE/SHE00000/UploadCKEditorFiles.aspx?type=Flash';
config.toolbarGroups = [
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'clipboard', groups: [ 'undo', 'clipboard' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
{ name: 'forms', groups: [ 'forms' ] },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
{ name: 'links', groups: [ 'links' ] },
{ name: 'insert', groups: [ 'insert' ] },
'/',
{ name: 'styles', groups: [ 'styles' ] },
{ name: 'colors', groups: [ 'colors' ] },
{ name: 'tools', groups: [ 'tools' ] },
{ name: 'others', groups: [ 'others' ] },
{ name: 'about', groups: [ 'about' ] }
];
config.removeButtons = 'PasteFromWord,Templates,About,Save,Form,Iframe';
};
我不知道如何等待我的回复才能获得有效回复。
如果我在控制台中 运行 解码,运行 没问题,但如果我使用 response.write,我会收到该错误。
我阅读了 this tutorial 的内容。
Details:
浏览器:Chrome 65 和 Firefox 59
OS: Windows 8.1 专业版
CKEditor 版本:4.9.1
Github中的问题是这样的:https://github.com/ckeditor/ckeditor-dev/issues/1894
Github 中的问题已解决:https://github.com/ckeditor/ckeditor-dev/issues/1894