企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# ThinkPHP整合百度Ueditor [TOC] ## 1.下载官方ueditor完整包,在项目中找个目录存放 ## 2.引入query.js 和ueditor配置文件 ~~~ <script src="/Data/Common/Js/jquery.js"></script> <SCRIPT charset="utf-8" src="/Data/Common/Ueditor/ueditor.config.js"></SCRIPT> <SCRIPT charset="utf-8" src="/Data/Common/Ueditor/ueditor.all.min.js"></SCRIPT> ~~~ ## 3.插入编辑区 ~~~ <script id="editor" type="text/plain" style="height:300px;">{$article.article_content}</script> ~~~ ## 4.初始化编辑器及定制编辑器菜单配置项 ~~~ <SCRIPT> var ue = UE.getEditor('editor', { toolbars: [ ['fullscreen', 'source','insertcode', 'undo', 'redo', 'bold'] ], autoHeightEnabled: true, autoFloatEnabled: true }); </SCRIPT> ~~~