欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

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

 更新時間:2010年05月26日 20:39:47   作者:  
這篇文章對于使用fckeditor編輯器的朋友是個不錯應用,主要介紹的是js對fckeditor的取值與賦值操作,fckeditor是個不錯的比較方便的擴展功能的編輯器。
獲取編輯器中HTML內(nèi)容
復制代碼 代碼如下:

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

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

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

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

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

FCKeditor 插件開發(fā)

相關文章

最新評論