向fckeditor编辑器插入指定代码的方法
发布时间:2016-12-30 来源:查字典编辑
摘要:functioninsertHTMLToEditor(obj){varoEditor=FCKeditorAPI.GetInstance("c...
functioninsertHTMLToEditor(obj)
{
varoEditor=FCKeditorAPI.GetInstance("content");
if(oEditor.EditMode==FCK_EDITMODE_WYSIWYG)
{
oEditor.InsertHtml(obj)
}
else
{
returnfalse;
}
}