百度编辑器:获取编辑器的内容


百度编辑大致展示(最新版的展示,请到官方查看):

<div id="myEditor">

<script type="text/javascript" id="myEditor">

var editor = new baidu.editor.ui.Editor({ 
   initialContent: '' 
}); 
editor.render("myEditor"); 
</script> 
</div> 

  

php获取内容:

$_POST['editorValue'];

  

 

 

js获取内容:

editor.getContent()

  

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM