主頁(yè) > 知識(shí)庫(kù) > javascript fckeditor編輯器取值與賦值實(shí)現(xiàn)代碼

javascript fckeditor編輯器取值與賦值實(shí)現(xiàn)代碼

熱門標(biāo)簽:呼叫中心市場(chǎng)需求 網(wǎng)站文章發(fā)布 美圖手機(jī) 智能手機(jī) 鐵路電話系統(tǒng) 檢查注冊(cè)表項(xiàng) 服務(wù)器配置 銀行業(yè)務(wù)
獲取編輯器中HTML內(nèi)容
復(fù)制代碼 代碼如下:

function getEditorHTMLContents(EditorName)
{
var oEditor = FCKeditorAPI.GetInstance(EditorName);
return(oEditor.GetXHTML(true));
}

獲取編輯器中文字內(nèi)容
復(fù)制代碼 代碼如下:

function getEditorTextContents(EditorName)
{
var oEditor = FCKeditorAPI.GetInstance(EditorName);
return(oEditor.EditorDocument.body.innerText);
}

設(shè)置編輯器中內(nèi)容
復(fù)制代碼 代碼如下:

function SetEditorContents(EditorName, ContentStr)
{
var oEditor = FCKeditorAPI.GetInstance(EditorName) ;
oEditor.SetHTML(ContentStr) ;
}

FCKeditor 插件開發(fā)
您可能感興趣的文章:
  • JS操作Fckeditor的一些常用方法(獲取、插入等)
  • CKEditor無(wú)法驗(yàn)證的解決方案(js驗(yàn)證+jQuery Validate驗(yàn)證)
  • javascript獲取ckeditor編輯器的值(實(shí)現(xiàn)代碼)
  • FCKeditorAPI 手冊(cè) js操作獲取等
  • fckeditor常用Js,獲取fckeditor內(nèi)容,統(tǒng)計(jì)fckeditor字?jǐn)?shù),向fckeditor寫入指定代碼
  • FCKEditor常用Js代碼,獲取FCK內(nèi)容,統(tǒng)計(jì)FCK字?jǐn)?shù),向FCK寫入指定代碼
  • FCKeditor提供了一個(gè)完整的JavaScript API
  • JavaScript 使用Ckeditor+Ckfinder文件上傳案例詳解

標(biāo)簽:沈陽(yáng) 上海 滄州 紅河 樂山 長(zhǎng)治 新疆 河南

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《javascript fckeditor編輯器取值與賦值實(shí)現(xiàn)代碼》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266