把黄页店铺发布新闻的编辑器换成百度编辑器
2021-11-19
293
大家都知道百度编辑器的强大,如何把黄页店铺新闻或者独立页面其他地方不受控制的编辑器换成百度编辑器呢,其实很简单。红色标记的是需要注意的地方,换到什么地方替换对应字段即可。
查找
<textarea style="display:none;" id="content1" name="content">$news[content]</textarea> <script type="text/java script"> CKEDITOR.replace( 'content1', { width:'100%', height:'300px', filebrowserBrowseUrl : '$webdb[www_url]/ewebeditor/ckfinder/ckfinder.html', filebrowserImageBrowseUrl : '$webdb[www_url]/ewebeditor/ckfinder/ckfinder.html?Type=Images', filebrowserFlashBrowseUrl : '$webdb[www_url]/ewebeditor/ckfinder/ckfinder.html?Type=Flash', filebrowserUploadUrl : '$webdb[www_url]/ewebeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files', filebrowserImageUploadUrl : '$webdb[www_url]/ewebeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images', filebrowserFlashUploadUrl : '$webdb[www_url]/ewebeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash' }); </script>
替换为
<script type="text/java script" charset=gbk src="hy/member/template/homepage_ctrl/$webdb[www_url]/ewebeditor/baidu/editor_config.php"></script> <script type="text/java script" charset=gbk src="hy/member/template/homepage_ctrl/$webdb[www_url]/ewebeditor/baidu/editor_all.js"></script> <link rel="stylesheet" type="text/css" href="hy/member/template/homepage_ctrl/$webdb[www_url]/ewebeditor/baidu/themes/default/ueditor.css"/> <textarea name="content" type="hidden" rows="5" id="content" style="">$news[content]</textarea> <script type="text/java script"> var editor_a = new baidu.editor.ui.Editor({ minFrameHeight:400 }); editor_a.render( 'content' ); </script>更新于:2021-11-19 23:21
赞一波!
相关文章
文章评论
评论问答