Rumah >hujung hadapan web >tutorial js >向fckeditor编辑器插入指定代码的方法_javascript技巧
function insertHTMLToEditor(obj)
{
var oEditor = FCKeditorAPI.GetInstance("content");
if(oEditor.EditMode == FCK_EDITMODE_WYSIWYG)
{
oEditor.InsertHtml(obj)
}
else
{
return false;
}
}