好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > FCKeditor提供了一個完整的JavaScript API

FCKeditor提供了一個完整的JavaScript API

熱門標簽:企業電話機器人辦理 智能電銷機器人真的好嗎 長春防封卡電銷卡套餐 天津電銷卡外呼系統線路 興化400電話辦理多少錢 四平電話機器人哪家好 長春銷售外呼系統業務 靈聲智能電話機器人招聘 株洲外呼營銷系統有哪些

FCKeditor offers a complete JavaScript API so you can interact with it once the editor is loaded and running.
FCKeditor提供了一個完整的JavaScript API(Application Public Interface),你可以利用這些API來處理FCK編輯器,只要它被加載完成或在正在運行中.
Retrieving an editor instanceOnce loaded, the editor registers a global object called FCKeditorAPI. This object offers the entry point to interact with any editor instance placed in a page (you can have more than one). When placing the editor in the page, you give it an "instance name". So, to retrieve it, you must simply call the FCKeditorAPI.GetInstance method.
一旦編輯器實例化完成后,它都會注冊一個全局的對象,叫作FCKeditorAPI. 這個對象提供一個接入點去獲取在本頁面內的任何已實例化的對象(不止一個).當你在頁面生成一個編輯器時,你給了它一個實例名.所以,你只需簡單地調用 FCKeditorAPI.GetInstance方法就可以獲取到它的對象引用.
For example: var oEditor = FCKeditorAPI.GetInstance('InstanceName') ;
例如,var oEditor = FCKeditorAPI.GetInstance('InstanceName') ; 這里就是獲取實例名為"InstanceName"的FCKeditor對象.
The GetInstance method returns the main FCKeditor object that gives the necessary bridge to interact with it.
This is a list of properties and methods of this object:
這是一個FCKeditor的屬性和方法的列表:

復制代碼 代碼如下:

* Description = string 描述
* EditMode = Integer 編輯狀態
* Name = string 名字
* Status = Integer 狀態
* function AttachToOnSelectionChange(functionPointer)
* function CleanAndPaste(html)
* function CreateElement(tag)
* function CreateLink(url)
* function ExecOnSelectionChange() //Fires OnSelectionChange event in event manager
* function ExecOnSelectionChangeTimer()
* function ExecuteNamedCommand(commandName, commandParameter)
* function ExecuteRedirectedNamedCommand(commandName, commandParameter)
* function Focus()
* function GetHTML(format) // doesnt work. Use GetXHTML instead.
* function GetNamedCommandState(commandName)
* function GetNamedCommandValue(commandName)
* function GetXHTML(format)
* function InitializeBehaviors()
* function InsertElement(element)
* function InsertElementAndGetIt(e)
* function InsertHtml(html)
* function IsDirty();
* function MakeEditable()
* function OnDoubleClick(element)
* function Paste()
* function PasteAsPlainText()
* function PasteFromWord()
* function Preview()
* function RegisterDoubleClickHandler(handlerFunction, tag)
* function ResetIsDirty();
* function SetHTML(html, forceWYSIWYG)
* function SetStatus()
* function ShowContextMenu(x, y)
* function SwitchEditMode()
* function UpdateLinkedField()

EventsOnce the editor loading is complete and it is ready to use (and interact with JavaScript), a standard function is called in the page that contains the editor, if the function is defined.
This function must be named "FCKeditor_OnComplete" and receives the related editor instance as the parameter. Using it, you can execute any initial code that makes the initial interaction with the editor.
This is a declaration example:
function FCKeditor_OnComplete( editorInstance ) {
alert( editorInstance.Name ) ; }
Apart the above standard event, every FCKeditor instance has a "Event" object that can be used to listen for events to be fired.
For example, the following code listens for the "OnSelectionChange" to execute custom code:
var counter = 0 ;
function DoSomething( editorInstance ) {
window.document.title = editorInstance.Name + ' : ' + ( ++counter ) ; }
function FCKeditor_OnComplete( editorInstance ) {
editorInstance.Events.AttachEvent( 'OnSelectionChange', DoSomething ) ; }
Note that every callback function receives the editor instance as a parameter.
The following is the list of events available:
OnSelectionChange: fired when the actual selection in the editor area changes (by selection I mean the cursor position too... it changes on key strokes). Note: In IE6, this event does not fire on every keystroke, but only on some random keystrokes. Handy!
OnAfterSetHTML: fired once the HTML is loaded in the editor (including when changing views).
OnStatusChange: fired when the editor status changes. The following constants are also available globally in the page: FCK_STATUS_NOTLOADED, FCK_STATUS_ACTIVE and FCK_STATUS_COMPLETE.
OnPaste: fired when something is pasted in the editor
配置選項:
AutoDetectLanguage=true/false 自動檢測語言
BaseHref="" _fcksavedurl="""" 相對鏈接的基地址
ContentLangDirection="ltr/rtl" 默認文字方向
ContextMenu=字符串數組,右鍵菜單的內容
CustomConfigurationsPath="" 自定義配置文件路徑和名稱
Debug=true/false 是否開啟調試功能,這樣,當調用FCKDebug.Output()時,會在調試窗中輸出內容
DefaultLanguage="" 缺省語言
EditorAreaCss="" 編輯區的樣式表文件
EnableSourceXHTML=true/false 為TRUE時,當由可視化界面切換到代碼頁時,把HTML處理成XHTML
EnableXHTML=true/false 是否允許使用XHTML取代HTML
FillEmptyBlocks=true/false 使用這個功能,可以將空的塊級元素用空格來替代
FontColors="" 設置顯示顏色拾取器時文字顏色列表
FontFormats="" 設置顯示在文字格式列表中的命名
FontNames="" 字體列表中的字體名
FontSizes="" 字體大小中的字號列表
ForcePasteAsPlainText=true/false 強制粘貼為純文本
ForceSimpleAmpersand=true/false 是否不把符號轉換為XML實體
FormatIndentator="" 當在源碼格式下縮進代碼使用的字符
FormatOutput=true/false 當輸出內容時是否自動格式化代碼
FormatSource=true/false 在切換到代碼視圖時是否自動格式化代碼
FullPage=true/false 是否允許編輯整個HTML文件,還是僅允許編輯BODY間的內容
GeckoUseSPAN=true/false 是否允許SPAN標記代替B,I,U標記
IeSpellDownloadUrl=""下載拼寫檢查器的網址
ImageBrowser=true/false 是否允許瀏覽服務器功能
ImageBrowserURL="" 瀏覽服務器時運行的URL
ImageBrowserWindowHeight="" 圖像瀏覽器窗口高度
ImageBrowserWindowWidth="" 圖像瀏覽器窗口寬度
LinkBrowser=true/false 是否允許在插入鏈接時瀏覽服務器
LinkBrowserURL="" 插入鏈接時瀏覽服務器的URL
LinkBrowserWindowHeight=""鏈接目標瀏覽器窗口高度
LinkBrowserWindowWidth=""鏈接目標瀏覽器窗口寬度
Plugins=object 注冊插件
PluginsPath="" 插件文件夾
ShowBorders=true/false 合并邊框
SkinPath="" 皮膚文件夾位置
SmileyColumns=12 圖符窗列數
SmileyImages=字符數組 圖符窗中圖片文件名數組
SmileyPath="" 圖符文件夾路徑
SmileyWindowHeight 圖符窗口高度
SmileyWindowWidth 圖符窗口寬度
SpellChecker="ieSpell/Spellerpages" 設置拼寫檢查器
StartupFocus=true/false 開啟時FOCUS到編輯器
StylesXmlPath="" 設置定義CSS樣式列表的XML文件的位置
TabSpaces=4 TAB鍵產生的空格字符數
ToolBarCanCollapse=true/false 是否允許展開/折疊工具欄
ToolbarSets=object 允許使用TOOLBAR集合
ToolbarStartExpanded=true/false 開啟是TOOLBAR是否展開
UseBROnCarriageReturn=true/false 當回車時是產生BR標記還是P或者DIV標記

您可能感興趣的文章:
  • JS操作Fckeditor的一些常用方法(獲取、插入等)
  • CKEditor無法驗證的解決方案(js驗證+jQuery Validate驗證)
  • javascript獲取ckeditor編輯器的值(實現代碼)
  • FCKeditorAPI 手冊 js操作獲取等
  • fckeditor常用Js,獲取fckeditor內容,統計fckeditor字數,向fckeditor寫入指定代碼
  • javascript fckeditor編輯器取值與賦值實現代碼
  • FCKEditor常用Js代碼,獲取FCK內容,統計FCK字數,向FCK寫入指定代碼
  • JavaScript 使用Ckeditor+Ckfinder文件上傳案例詳解

標簽:石嘴山 新疆 運城 巴彥淖爾 漯河 青海 貴港 黑龍江

巨人網絡通訊聲明:本文標題《FCKeditor提供了一個完整的JavaScript API》,本文關鍵詞  FCKeditor,提供,了,一個,完整,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《FCKeditor提供了一個完整的JavaScript API》相關的同類信息!
  • 本頁收集關于FCKeditor提供了一個完整的JavaScript API的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 啦啦啦免费高清在线观看视频播放 | 裙子里面是野兽哔哩哔哩| 中文字幕人妻一区二区三区 | 性噜噜视频在线播放| 2024年4虎永久地域网名解析| 欧美四级在线| 亚洲伊人久久大香线焦| 久久精品无码一区二区综合| 美脚パンストの丝袜视频| 九九资源站| 《浴室激情》在线观看| 封九辞秦薇浅天降萌宝求抱抱| 国产精品偷伦视频免费观看了密臂| 免费看黄网站黄污污污色情| 国产精品深爱在线| 又粗粗又大人人爽A片| 美女直播全婐app免费春光直播| 异族黑吊xxx| 男人把女人捅爽| 一个人看的www高清视频| 短篇小肉文| 久久福利片二区首页| 激情五月俺来也| 快穿浪荡系列高h| 啊啊啊再深一点| 噜噜噜噜噜久久久久久91| 特级全黄大片| 欧美一级A片| 曰本女人?精视频XXXXXx免| 日日噜噜夜夜爽爽日产| 天天5g天天爽永久免费看欧美| 麻豆?无码?国产在线| 久久久无码精品一区波多野结衣| 大猛1和小0| 国产午夜人做人免费视频中文| 男男Gay做受XXXⅩ106| 自己玩自己的r头| 尖叫痉挛高潮喷水中文字幕| yy漫画在线看| 欧美一级婬片A片AAA毛片| 免费看片A级毛片免费看电影男 |