ckeditor 怎么清空值

来源:百度知道 编辑:UC知道 时间:2024/06/01 01:54:24
清空 ckeditor 的文本
像清空文本框的文本一样(txt.value="")

C#: fckeditor1.Value = "";
Javascript:
document.getElementById("fckeditor1").value = "";
window.frames[0].document.getElementById("xEditingArea").innerHTML = "";

function goToolbar(cmd)
{
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1');
oEditor.Commands.GetCommand(cmd).Execute();
}

--
FCKConfig.ToolbarSets["Default"] = [
['Source','DocProps','-','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
'/',
['Bold','Italic','Underline','StrikeThrough','-