我之前一直用的是2.3版本的,但升成2.6版本后就出现这用情况,下面我把我主要设置与调用代码贴出来,希望高手帮忙解决一下,先谢谢了!
我的Web.config主要设置:
<pages enableEventValidation="false" viewStateEncryptionMode="Never" validateRequest="false">
<controls>
<add tagPrefix="wlsugar" namespace="FredCK.FCKeditorV2" assembly="FredCK.FCKeditorV2"/>
</controls>
</pages>
我的aspx页面调用设置:
<wlsugar:FCKeditor id="ArticleNote" runat="server" Width="100%" Height="450px">
</wlsugar:FCKeditor>
我的FCKeditor\editor\fckconfig.js主要设置:
var _FileBrowserLanguage = 'aspx' ;
var _QuickUploadLanguage = 'aspx' ;
我的上传设置文件FCKeditor\editor\filemanager\connectors\aspx\config.ascx代码:
public override void SetConfig()
{
// SECURITY: You must explicitly enable this "connector". (Set it to "true").
Enabled = CheckAuthentication();
// URL path to user files.
UserFilesPath = "/userfiles/";
// The connector tries to resolve the above UserFilesPath automatically.
// Use the following setting it you prefer to explicitely specify the
// absolute path. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' URL must point to the same directory.
UserFilesAbsolutePath = "";
// Due to security issues with Apache modules, it is recommended to leave the
// following setting enabled.
ForceSingleExtension = true;
// For security, HTML is allowed in the first Kb of data for files having the
// following extensions only.
HtmlExtensions = new string[] { "html", "htm", "xml", "xsd", "txt", "js" };