ueditor1.4.3部署到Thinkphp上

本文详细介绍了如何将ueditor1.4.3版本部署到Thinkphp框架中,包括下载编辑器、放置到public文件夹、引用及在页面中展示编辑器的步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


第一步:下载ueditor1.4.3

       地址:http://ueditor.baidu.com/website/download.html;

第二步:把ueditor1.4.3放到public文件夹下,更名为ueditor

      

第三步:把ueditor1.4.3放到public文件夹下在需要引用的文件中加入

    <span style="font-size:18px;"><!-- 配置文件 -->
<script type="text/javascript" src="http://localhost/neau/Public/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
<script type="text/javascript" src="http://localhost/neau/Public/ueditor/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
<script type="text/javascript">
    var ue = UE.getEditor('container');
</script></span>
注意:这里要将
<span style="font-size:18px;">src="http://localhost/neau/Public/ueditor/ueditor.all.js"</span>
写为绝对路径而非相对路径;

第四步:在需要显示编辑器的地方加下面的代码

<strong><span style="font-size:18px;"><span style="font-size:24px;"><strong></strong></span></span></strong><pre name="code" class="html"><span style="font-size:18px;"><!-- 编辑器容器 --></span>
<td colspan="3" class="tablebj03" > <script id="container" name="content" type="text/plain" style="width:960px;height:500px;"></script> </td>

这样就能在Thinkphp3.1上使用ueditor1.4.3了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值