向fckeditor编辑器插入指定代码的方法 2020-02-16 分类:首页 标签Tags:fckeditor,编辑器,插入,指定,代码,方法,function,obj,var,oeditor,getinstance,content,editmode,fck,wysiwyg,inserthtml,else,return
function insertHTMLToEditor(obj) { var oEditor = FCKeditorAPI.GetInstance("content"); if(oEditor.EditMode == FCK_EDITMODE_WYSIWYG) { oEditor.InsertHtml(obj) } else { return false; } } 以上就是【向fckeditor编辑器插入指定代码的方法】的全部内容了,欢迎留言评论进行交流!