向fckeditor编辑器插入指定代码的方法_javascript技巧
时间:2021-07-01 10:21:17
帮助过:11人阅读
function insertHTMLToEditor(obj)
{
var oEditor = FCKeditorAPI.GetInstance("content");
if(oEditor.EditMode == FCK_EDITMODE_WYSIWYG)
{
oEditor.InsertHtml(obj)
}
else
{
return false;
}
}