fck编辑器

FCK编辑器js调用

var oFCKeditor = new FCKeditor( “name” ) ;   //textarea名称
      oFCKeditor.BasePath = "/FCKeditor/" ;     //fck编辑器路径
      oFCKeditor.ReplaceTextarea() ;                //替换


var eco = FCKeditorAPI.GetInstance('fck_economic').GetXHTML( true );            //获取内容,取实例需要加fck_前缀


     var editor = FCKeditorAPI.GetInstance("fck_economic");                            //内容清空
    editor.EditorDocument.body.innerHTML="";

你可能感兴趣的:(fckeditor)