Home  >  Article  >  Web Front-end  >  How to insert specified code into the fckeditor editor_javascript skills

How to insert specified code into the fckeditor editor_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:13:061126browse

function insertHTMLToEditor(obj)
{
      var oEditor = FCKeditorAPI.GetInstance("content");
      if(oEditor.EditMode == FCK_EDITMODE_WYSIWYG)
      {
             oEditor.InsertHtml(obj)
      }
      else
     {
              return false;
     }
}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn