Comments (2)
你看一下是不是你的view中有没有问题。
<?=$form->field($model, 'content')->widget('\kucha\ueditor\UEditor',[
'clientOptions' => [
'serverUrl' => Url::to(['/public/ueditor']),//确保serverUrl正确指向后端地址【可能你的这里有问题】
'lang' =>'zh-cn', //中文为 zh-cn
'initialFrameWidth' => '100%',
'initialFrameHeight' => '400',
//定制菜单,参考http://fex.baidu.com/ueditor/#start-toolbar
'toolbars' => [
[
'fullscreen', 'source', 'undo', 'redo', '|',
'fontsize',
'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'removeformat',
'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|',
'forecolor', 'backcolor', '|',
'lineheight', '|',
'indent', '|',
],
['preview','simpleupload','insertimage','link','emotion','map','insertvideo','insertcode',]
]
]
],['class'=>'c-md-7'])->label('文章内容');?>
from yii2admin.
如果还有问题,你就在浏览器中访问http://backend-url/public/ueditor,将返回的内容和官方给的ueditor的参数核对一下即可。
from yii2admin.
Related Issues (20)
- 请问有没有纯api接口的项目 HOT 1
- 样式和js为啥后台找不到 HOT 1
- 为啥要移除 init脚本呢
- 根本用不了,没有vendor HOT 1
- apache配置问题
- 在后台登录之后访问前台,/frontend/models/user 不存在
- composer安装出错 HOT 2
- 列表页的index.php 多层级的时候不刷新解决办法
- Unable to determine the path info of the current request.
- 确实autoloader.php 以及缺少htmlpurifier缺少文件
- 全站包怎么配置数据库并安装数据库
- 全站打包,安装后访问/admin报错 HOT 2
- composer install 为什么不能拉,我觉得这个要详细告知下哈 ,完整包这样不利于扩展哈
- 安装后访问出现错误 HOT 3
- 安装时报错,执行composer update 提示没有包 HOT 11
- 哈哈 哥们可以把前端模板给我一份儿么? HOT 24
- SQL问题 HOT 6
- 关于项目rule规则 HOT 1
- 新建立应用主体怎么建立 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2admin.