function writeContent(context)
{
var oEditor = FCKeditorAPI.GetInstance("myTextAreaId");
oEditor.EditorDocument.body.innerHTML = "";
oEditor.Focus();
oEditor.InsertHtml(context);
}
{
var oEditor = FCKeditorAPI.GetInstance("myTextAreaId");
oEditor.EditorDocument.body.innerHTML = "";
oEditor.Focus();
}
##########################
function writeContent(context)
{
var oEditor = FCKeditorAPI.GetInstance("myTextAreaId");
oEditor.SetHTML(context);
}
function clearContent()
{
var oEditor = FCKeditorAPI.GetInstance("myTextAreaId");
oEditor.SetHTML("");
}
本文提供了使用 FCKeditor API 的两个示例函数:一个用于在编辑器中插入内容,另一个用于清空编辑器的内容。这些函数通过获取 FCKeditor 实例并操作其 HTML 内容来实现。
1255

被折叠的 条评论
为什么被折叠?



