CKEditor、CKFinder整合后报错 未能加载类型“CKFinder.Connector.Connector”
代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CKEditor.aspx.cs" Inherits="CKEditor_CKEditor"
ValidateRequest="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
<script type="text/javascript" language="javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript" language="javascript" src="ckfinder/ckfinder.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txt1" runat="server" TextMode="MultiLine"></asp:TextBox>
<script type="text/javascript">
var editor = CKEDITOR.replace('txt1');
CKFinder.setupCKEditor(editor,"/ckfinder/");
</script>
</div>
</form>
</body>
</html>
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.filebrowserBrowseUrl= 'ckfinder/ckfinder.html'; //上传文件时浏览服务文件夹
//上传图片时浏览服务文件夹
config.filebrowserImageBrowseUrl= 'ckfinder/ckfinder.html?Type=Images';
//上传Flash时浏览服务文件夹
config.filebrowserFlashBrowseUrl= 'ckfinder/ckfinder.html?Type=Flash';
//上传文件按钮(标签)
config.filebrowserUploadUrl = 'ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files';
//上传图片按钮(标签)
config.filebrowserImageUploadUrl= 'ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images';
//上传Flash按钮(标签)
config.filebrowserFlashUploadUrl= 'ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash';
config.toolbar =
[
['Source', '-', 'Preview'], ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'], ['Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll', 'RemoveFormat'], ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote', 'ShowBlocks'], '/',
['Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript'], ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ['Link', 'Unlink', 'Anchor'], ['Image', 'Flash', 'Table', 'HorizontalRule', 'SpecialChar'], '/',
['Styles', 'Format', 'Font', 'FontSize'], ['TextColor', 'BGColor'], ['Maximize', '-', 'About']
];
};
// 在 CKEditor 中集成 CKFinder,注意 ckfinder 的路径选择要正确。
CKFinder.SetupCKEditor(null, '../ckfinder/');
分析器错误消息: 未能加载类型“CKFinder.Connector.Connector”。
源错误:
行 1: <%@ Page Language="c#" Inherits="CKFinder.Connector.Connector" Trace="false" AutoEventWireup="false" %>
行 2: <%@ Register Src="../../../config.ascx" TagName="Config" TagPrefix="CKFinder" %>
行 3: <%--
源文件: /CKEditor/ckfinder/core/connector/aspx/connector.aspx 行: 1
下班了,白白。。