独立页改成百度编辑器实例
2021-11-19
205
打开:admin\template\alonepage\edit.htm
查找:
<iframe id="eWebEditor1" src="ewebeditor/ewebeditor.php?id=content&style=standard" frameborder="0" scrolling="no" width="100%" height="450"></iframe> <input name="postdb[content]" type="hidden" id="content" value='$rsdb[content]'>
替换为:
<textarea name="postdb[content]" id="myEditor" style="width:600px;">$rsdb[content]</textarea> <script type="text/java script"> var editor_a = new baidu.editor.ui.Editor({minFrameHeight:190}); editor_a.render( 'myEditor' ); </script>
赞一波!
相关文章
文章评论
全部评论