首页 > 编程 > JavaScript > 正文

向fckeditor编辑器插入指定代码的方法

2019-11-21 02:04:06
字体:
来源:转载
供稿:网友
function insertHTMLToEditor(obj)
{
      var oEditor = FCKeditorAPI.GetInstance("content");
      if(oEditor.EditMode == FCK_EDITMODE_WYSIWYG)
      {
             oEditor.InsertHtml(obj)
      }
      else
     {
              return false;
     }
}
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表