Fckeditor 2.5 for asp.net配置詳解

來源:互聯網
上載者:User

以fckeditor 2.5為例
fckconfig.js檔案
該檔案為fckeditor的核心設定檔,具體參數說明:
//定製的配置路徑
FCKConfig.CustomConfigurationsPath = '' ;
//編輯地區對應的樣式表檔案路徑,其中FCKConfig.BasePath為fckeditor檔案夾的基路徑,後面為CSS樣式表路徑,開啟CSS檔案夾可以看到有三種樣式可供選擇.
FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
//編輯地區風格
FCKConfig.EditorAreaStyles = '' ;
//工具列預覽CSS
FCKConfig.ToolbarComboPreviewCSS = '' ;
//文件類型
FCKConfig.DocType = '' ;
//基連結
FCKConfig.BaseHref = '' ;
//是否允許編輯整個HTML檔案,還是僅允許編輯BODY間的內容(選項:true/false)
FCKConfig.FullPage = false ;

// The following option determines whether the "Show Blocks" feature is enabled or not at startup.
FCKConfig.StartupShowBlocks = false ;
//是否開啟調試功能,這樣,當調用FCKDebug.Output()時,會在調試窗中輸出內容(選項:true/false)
FCKConfig.Debug = false ;
//
FCKConfig.AllowQueryStringDebug = true ;
//FckEditor皮膚路徑.即工具列的風格,三種可供選擇
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
//預裝入的圖片
FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ;
//外掛程式路徑
FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;

// FCKConfig.Plugins.Add( 'autogrow' ) ;
// FCKConfig.Plugins.Add( 'dragresizetable' );
FCKConfig.AutoGrowMax = 400 ;

// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ; // ASP style server side code <%...%>
// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code
// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ; // ASP.Net style tags <asp:control>
//是否自動檢測語言,即Fckeditor啟動時自動檢測瀏覽器語言
FCKConfig.AutoDetectLanguage = true ;
//預設語言,可根據lang檔案夾中的語言列表選擇,一般為zh-cn,不配置也沒關係,將上一項設定為true會自動檢測
FCKConfig.DefaultLanguage  = 'en' ;
//預設的文字方向,可選"ltr/rtl",即從左至右或從右至左
FCKConfig.ContentLangDirection = 'ltr' ;
//處理HTML實體
FCKConfig.ProcessHTMLEntities = true ;
//包括拉丁文
FCKConfig.IncludeLatinEntities = true ;
//包括希臘文
FCKConfig.IncludeGreekEntities = true ;
//處理數字實體
FCKConfig.ProcessNumericEntities = false ;
//附加的數字實體
FCKConfig.AdditionalNumericEntities = ''  ;  // Single Quote: "'"
//是否填充空塊
FCKConfig.FillEmptyBlocks = true ;
//在切換到程式碼檢視時是否自動格式化代碼
FCKConfig.FormatSource  = true ;
//當輸出內容時是否自動格式化代碼
FCKConfig.FormatOutput  = true ;
//當在源碼格式下縮排代碼使用的字元
FCKConfig.FormatIndentator = '    ' ;
//開啟時焦點是否到編輯器,即開啟頁面時游標是否停留在fckeditor上
FCKConfig.StartupFocus = false ;
//是否強制粘貼為純檔案內容
FCKConfig.ForcePasteAsPlainText = false ;
//是否自動探測從word粘貼檔案,僅支援IE
FCKConfig.AutoDetectPasteFromWord = true ; // IE only.
//是否顯示下拉式功能表
FCKConfig.ShowDropDialog = true ;
//是否不把&符號轉換為XML實體
FCKConfig.ForceSimpleAmpersand = false ;
//按下Tab鍵時游標跳格數,預設值為零為不跳格
FCKConfig.TabSpaces  = 0 ;
//合并邊框
FCKConfig.ShowBorders = true ;
//彈出
FCKConfig.SourcePopup = false ;
//啟動fckeditor工具列預設是否展開
FCKConfig.ToolbarStartExpanded = true ;
//是否允許摺疊或展開工具列
FCKConfig.ToolbarCanCollapse = true ;
//是否忽略空的段落值
FCKConfig.IgnoreEmptyParagraphValue = true ;
//
FCKConfig.PreserveSessionOnFileBrowser = false ;
//浮動面板索引
FCKConfig.FloatingPanelsZIndex = 10000 ;
//是否將HTML編碼輸出
FCKConfig.HtmlEncodeOutput = false ;
//是否替換所有模板
FCKConfig.TemplateReplaceAll = true ;
FCKConfig.TemplateReplaceCheckbox = true ;
//工具列位置,
FCKConfig.ToolbarLocation = 'In' ;
以上功能未詳細測試,測試完成後將進一步補充

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.