thinkphp中插入ueditor编辑器的代码
原文链接: 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