thinkphp中插入ueditor编辑器的代码

末鹿安然 提交于 2019-12-02 14:20:41
原文链接:http://www.cnblogs.com/z0913/p/8178087.html
1、需要在header中加入以下js内容:<script type="text/javascript" src="{$smarty.const.__ROOT__}/ueditor/ueditor.config.js"></script><script type="text/javascript" src="{$smarty.const.__ROOT__}/ueditor/ueditor.all.js"></script><script type="text/javascript">    function edit(){        UE.getEditor('content');    }</script>2、在使用编辑器的地方加上如下代码:
<body οnlοad="edit()" >
<div id="nr">内 容 (ueditor编辑器)<a href="#">查看自动保存内容</a></div>
<textarea id="content" name="content" style="width:900px;height:300px;"></textarea>
</body>3、把编辑器文件夹放在根目录下

转载于:https://www.cnblogs.com/z0913/p/8178087.html

 
1、需要在header中加入以下js内容:<script type="text/javascript" src="{$smarty.const.__ROOT__}/ueditor/ueditor.config.js"></script><script type="text/javascript" src="{$smarty.const.__ROOT__}/ueditor/ueditor.all.js"></script><script type="text/javascript">    function edit(){        UE.getEditor('content');    }</script>2、在使用编辑器的地方加上如下代码:
<body οnlοad="edit()" >
<div id="nr">内 容 (ueditor编辑器)<a href="#">查看自动保存内容</a></div>
<textarea id="content" name="content" style="width:900px;height:300px;"></textarea>
</body>3、把编辑器文件夹放在根目录下
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!