tp5集成Ueditor编辑器

浏览:1551 发布日期:2018/12/29 分类:技术分享 关键字: tp,ueditor,百度编辑器
来造一个ueditor编辑器的轮子喽……

安装
rbac支持composer安装 Packagist。在项目中的文件 composer.json 里添加:"phprookiehbb/tp-ueditor": "dev-master"或者直接运行composer require phprookiehbb/tp-ueditor:dev-master使用

直接在需要使用编辑器的视图文件用如下定义即可:{:ueditor([
    'initialFrameHeight'=>500,
    'initialFrameWidth'=>1024,
])}
其中的参数可以自定义配置,目前除了serverUrl外,其它均可配置,具体配置参数,参考ueditor。

说明

后续版本中会加入对于七牛云,阿里云等云存储的支持。


博客地址 https://crasphter.cn/article/29
好用的话记得git上给个星哟,么么哒 https://github.com/phprookiehbb/tp-ueditor
最佳答案
评论( 相关
后面还有条评论,点击查看>>