2015-06-18
帝国CMS管理员后台自定义页面更换百度编辑器的方法
打开 eadmintemplateAddPage.php 在其
搜索:
<?=ECMS_ShowEditorVar('pagetext',stripSlashes($r[pagetext]),'Default','../ecmseditor/infoeditor/','300','100%')?>
替换为:
<?php $ziduan='pagetext';//编辑器使用的字段名称 $qiantai=0; $ziduanzhi=stripSlashes($r[$ziduan]); ?> <script>var classid=0,infoid=0,filepass=0,ehash='<?=$ecms_hashur[ehref]?>',qiantai='<?=$qiantai?>';//把参数传给编辑器,增加支持7.2版本的金刚模式</script> <script type="text/javascript" charset="utf-8" src="/e/extend/ueditor/ueditor.config.js"></script> <script type="text/javascript" charset="utf-8" src="/e/extend/ueditor/ueditor.all.min.js"></script> <script type="text/javascript" charset="utf-8" src="/e/extend/ueditor/ueditor.toolbarconfig.js"></script> <textarea id="<?=$ziduan?>" name="<?=$ziduan?>"><?=$ziduanzhi?></textarea> <script type="text/javascript"> <?=$ziduan?>=UE.getEditor('<?=$ziduan?>',{ serverUrl: "/e/extend/ueditor/php/controller.php",//自己的请求接口 toolbars:Default,//工具栏配置文件,具体参考ueditor.toolbarconfig.js文件中说明 initialFrameWidth:'100%',//编辑器宽 initialFrameHeight:300//编辑器高 //等等其它配置自行添加,参考UE默认配置文件复制修改即可 }); //自定义请求参数 <?=$ziduan?>.ready(function(){ <?=$ziduan?>.execCommand('serverparam',{ 'filepass':'0',//修改时候是信息ID 'classid' :'0', 'qiantai':<?=$qiantai?> }); }); </script>
第二步(尤其注意):找到:<form name="form1" method="post" action="../ecmscom.php"> 同理:把</form>表单结束放到</table>的下面 如图2: 这样数据才能正常传输。这一步一定要这么做即可。这样自定义页面使用模板方式就可以使用百度编辑器了。 暂时未发现其他BUG等问题,具体自行测试,仅供参考。
把这段表单开始放在<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">的上面
如图1:
迷你单机沙盒手机版下载v1.24 安卓版
其它手游 109.7M
下载生存闯关测试服下载v1.11.94 安卓版
其它手游 212.1M
下载三体乱纪元大冒险手游下载v1.0 安卓版
其它手游 13.8M
下载缩放大师官方版下载v1.2.0 安卓版
其它手游 131.1M
下载火柴人联盟释放双手游戏下载v1.17.1 安卓最新版
其它手游 84.9M
下载木乃伊法老王归来手机版下载v1.6 安卓版
其它手游 108.6M
下载少年侠客完整版下载v3.5.9 最新安卓版
其它手游 126.5M
下载魔女之恋内衣版下载v3.6 安卓版
其它手游 489.0M
下载我的安吉拉4399版本下载v5.3.0.270 安卓最新版
下载
三国伏魔录单机版下载v4.9.0 安卓版
下载
求仙斗破仙帝官方版下载v1.21.39 安卓最新版
下载
王者史诗手机游戏下载v1.0.0 安卓最新版
下载
上古神诀手游下载v2.2.0 安卓版
下载
乱时空手游下载v1.0.1 安卓版
下载
放置奇兵乐游客户端下载v1.11.0 安卓版
下载
妖怪哪里跑内购破解版下载v1.5.0 安卓版
下载