91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 160.81 KB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2020-12-14
  • 語言: 其他
  • 標簽: .net??

資源簡介

FCKeditor文本編輯器  簡單強大
FCKeditor.Net編輯器在.net環境的配置方法:
先下載FCKeditor_2.6.5.zip和FCKeditor.Net_2.6.3.zip兩個文件
此包為FCKeditor.Net_2.6.3.zip,本站FCKeditor_2.6.5.zip的下載地址為/download-88.html
官網下載地址:http://www.fckeditor.net/
   第一步:解壓縮FCKeditor_2.6.3.zip文件,并將解壓縮得到的fckeditor文件夾復制到你想使用這個編輯器的網站的根目錄下面。

   第二步:把下載的FCKeditor.Net.zip隨便解壓縮到你硬盤的一個空目錄,里面是FCKeditor.Net的源代碼,可以對它進行再度開發,我這里講直接應用,我們要使用到是其目錄下的\bin\Debug目錄中的FredCK.FCKeditorV2.dll文件。在你的網站里面把這個FredCK.FCKeditorV2.dll添加到bin目錄下。

   第三步:進入FCKeditor文件夾,編輯 fckconfig.js 文件,如下:

 

1、指定編輯器應用的編程環境,修改
var _FileBrowserLanguage = 'asp' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'asp' ; // asp | aspx | cfm | lasso | php
改為
var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | php


2、配置語言包。有英文、繁體中文等,這里我們使用簡體中文。
修改
FCKConfig.DefaultLanguage = 'en' ;

FCKConfig.DefaultLanguage = 'zh-cn' ;


3、配置皮膚。有default、office2003、silver風格等,這里我們可以使用默認。
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
4、在編輯器域內可以使用Tab鍵。(1為是,0為否)
FCKConfig.TabSpaces = 0 ; 改為FCKConfig.TabSpaces = 1 ;


5、加上幾種我們常用的字體的方法,例如:
修改
FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;

FCKConfig.FontNames = '宋體;黑體;隸書;楷體_GB2312;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana'


6、編輯器域內默認的顯示字體為12px,想要修改可以通過修改樣式表來達到要求,打開/editor/css/fck_editorarea.css,修改font-size屬性即可。如font-size: 14px;


7、關于安全性。
如果你的編輯器用在網站前臺的話,那就不得不考慮安全了,在前臺千萬不要使用Default的toolbar,要么自定義一下功能,要么就用系統已經定義好的Basic,也就是基本的toolbar,
修改
FCKConfig.ToolbarSets["Basic"] = [
    ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']

FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Unlink','-','Style','FontSize','TextColor','BGColor','-','Smiley','SpecialChar','Replace','Preview']
] ;
   第四步:在Web.Config文件里面添加,如下所示

1、配置WebConfig,在<appSettings>節點添加,如下所示:
 如果你用的是默認的上傳功能,則
    <add key="FCKeditor:BasePath" value="~/fckeditor/"/>
    <add key="FCKeditor:UserFilesPath" value="/網站名稱/UploadFiles/"/>
第五步:在頁面里應用FCKeditor編輯器

<%@ Page Language="C#"  AutoEventWireup="true"   CodeFile="Default.aspx.cs" Inherits="_Default" validateRequest="false" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
// 這里要主要兩個參數
// 默認為<%@ Page Language="C#"  AutoEventWireup="true"   CodeFile="Default.aspx.cs" Inherits="_Default" %>
// 我們要添加一個參數 validateRequest=false,否則提交帶html代碼的內容會報錯
// 從客戶端(...)中檢測到有潛在危險的 Request.Form 值。
<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server">
        </FCKeditorV2:FCKeditor>
        &nbsp;</div>
    </form>
</body>
</html>
如何獲取其內容呢?讀取FCKeditor1控件的Value屬性值即可。


到這里基本OK了,但是我發現在使用圖片上傳功能的時候,會彈出一個阻止框,顯示"this connector is disabled Please check the"editor/filemanager/connectors/aspx/config.aspx",解決這個錯誤的方法是打開editor/filemanager/connectors/aspx/config.ascx修改CheckAuthentication()方法,返回true

C# code

private bool CheckAuthentication()
{
// WARNING : DO NOT simply return "true". By doing so, you are allowing
// "anyone" to upload and list the files in your server. You must implement
// some kind of session validation here. Even something very simple as...
//
//        return ( Session[ "IsAuthorized" ] != null && (bool)Session[ "IsAuthorized" ] == true );
//
// ... where Session[ "IsAuthorized" ] is set to "true" as soon as the
// user logs in your system.

        return true;
}

資源截圖

代碼片段和文件信息

/*
?*?FCKeditor?-?The?text?editor?for?Internet?-?http://www.fckeditor.net
?*?Copyright?(C)?2003-2007?Frederico?Caldeira?Knabben
?*
?*?==?BEGIN?LICENSE?==
?*
?*?Licensed?under?the?terms?of?any?of?the?following?licenses?at?your
?*?choice:
?*
?*??-?GNU?General?Public?License?Version?2?or?later?(the?“GPL“)
?*????http://www.gnu.org/licenses/gpl.html
?*
?*??-?GNU?Lesser?General?Public?License?Version?2.1?or?later?(the?“LGPL“)
?*????http://www.gnu.org/licenses/lgpl.html
?*
?*??-?Mozilla?Public?License?Version?1.1?or?later?(the?“MPL“)
?*????http://www.mozilla.org/MPL/MPL-1.1.html
?*
?*?==?END?LICENSE?==
?*/

using?System.Reflection;
using?System.Runtime.CompilerServices;
using?System.Security.Permissions?;
using?System.Web.UI?;

[assembly:TagPrefix(“FredCK.FCKeditorV2“?“

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????596??2008-07-26?14:53??_assemblykey.snk
?????文件????????1262??2008-03-19?18:47??_documentation.html
?????目錄???????????0??2008-07-26?14:53??_samples\
?????目錄???????????0??2008-07-26?14:53??_samples\aspx\
?????目錄???????????0??2008-07-26?14:53??_samples\aspx\1.1\
?????文件????????3735??2008-07-26?14:47??_samples\aspx\1.1\sample01.aspx
?????文件????????4767??2008-07-26?14:47??_samples\aspx\1.1\sample02.aspx
?????文件????????3353??2008-07-26?14:53??_samples\aspx\1.1\sample02.aspx.cs
?????文件????????5317??2008-07-26?14:53??_samples\aspx\1.1\sample02.aspx.resx
?????文件????????2810??2008-07-26?14:47??_samples\aspx\1.1\sample03.aspx
?????文件????????2956??2008-07-26?14:53??_samples\aspx\1.1\sample03.aspx.cs
?????文件????????5317??2008-07-26?14:53??_samples\aspx\1.1\sample03.aspx.resx
?????文件????????2853??2008-07-26?14:47??_samples\aspx\1.1\sample04.aspx
?????文件????????3067??2008-07-26?14:53??_samples\aspx\1.1\sample04.aspx.cs
?????目錄???????????0??2008-07-26?14:53??_samples\aspx\2.0\
?????文件????????3334??2008-02-19?14:23??_samples\aspx\2.0\sample01.aspx
?????文件????????4751??2008-02-19?14:23??_samples\aspx\2.0\sample02.aspx
?????文件????????2371??2008-07-26?14:53??_samples\aspx\2.0\sample02.aspx.cs
?????文件????????2809??2008-02-19?14:23??_samples\aspx\2.0\sample03.aspx
?????文件????????1992??2008-07-26?14:53??_samples\aspx\2.0\sample03.aspx.cs
?????文件????????2852??2008-02-19?14:23??_samples\aspx\2.0\sample04.aspx
?????文件????????2106??2008-07-26?14:53??_samples\aspx\2.0\sample04.aspx.cs
?????文件????????1494??2007-12-22?12:23??_samples\aspx\default.html
?????文件????????8627??2008-07-26?14:45??_whatsnew.html
?????文件????????3451??2008-07-26?14:53??AssemblyInfo.cs
?????目錄???????????0??2008-07-26?14:53??bin\
?????目錄???????????0??2008-07-26?14:53??bin\Debug\
?????目錄???????????0??2008-07-26?14:53??bin\Debug\1.1\
?????文件???????45056??2008-07-26?14:53??bin\Debug\1.1\FredCK.FCKeditorV2.dll
?????文件???????85504??2008-07-26?14:53??bin\Debug\1.1\FredCK.FCKeditorV2.pdb
?????目錄???????????0??2008-07-26?14:53??bin\Debug\2.0\
............此處省略23個文件信息

評論

共有 條評論