当前位置: 代码迷 >> Java Web开发 >> 获取FCKeditor编辑好的文本的html代码的有关问题
  详细解决方案

获取FCKeditor编辑好的文本的html代码的有关问题

热度:88   发布时间:2016-04-17 16:12:14.0
获取FCKeditor编辑好的文本的html代码的问题?
我想获取FCKeditor编辑好的文本的html代码,谁知道FCKeditor怎么得到啊,就是比如在FCKeditor的编辑一个文本 "ttt ",我要或得的是 <p> ttt </p>


------解决方案--------------------
通过request.getParameter( "id "); 就ok了
------解决方案--------------------
javascript里:
var oEditor = FCKeditorAPI.GetInstance('remark') ;
alert(oEditor.GetHTML());

remark是指你的编辑器名称。
  相关解决方案