1.下载富文本文件:百度网盘链接:https://pan.baidu.com/s/13j3lu7bkreQ_fVA8SxzkYA
提取码:0619
2.下载好后解压文件,把解压后的文件放入TP5框架中public目录下。
3.引入富文本
(2)在head标签中引入,src路径记得修改
<script type="text/javascript" charset="utf-8" src="/static/utf8-php/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/static/utf8-php/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="/static/utf8-php/lang/zh-cn/zh-cn.js"></script>
(3)在body标签中引入
<textarea name="" id="editor" placeholder="" class=""></textarea>
(4)在html标签外引入
<script type="text/javascript">
var ue = UE.getEditor('editor');
</script>
(5)刷新页面就可以啦!