acking
- acking 2015-07-23 已签到连续签到2天,获得了10个金钱
你说点具体的啊,就是先帮你,感觉按你现在的描述无从下手呢~
1我正常composer安装"kucha/ueditor": "*" 代码已经安装到对应目录
2我在控制器里面插入public function actions() { return [ 'upload' => [ 'class' => 'kucha\ueditor\UEditorAction', 'config' => [ "imageUrlPrefix" => "http://www.baidu.com",//图片访问路径前缀 "imagePathFormat" => "/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}" //上传保存路径 ], ] ]; }
2我在view中调用
echo \kucha\ueditor\UEditor::widget([]);
报错:Either 'name', or 'model' and 'attribute' properties must be specified.
3我在view中调用
echo $form->field($model,'colum')->widget('kucha\ueditor\UEditor',[]);
正常显示 文本框 但是没有编辑器效果Js 有没有加载进来你可以通过浏览器来排除,右键-审查元素,你也可以通过这种方法来看是不是配置错了点什么。
推荐你用大裤衩子的ueditor: http://www.yiichina.com/extension/342
另,你应该把你使用的 ueditor 地址以及你的使用代码贴出来,这样大家才能很好的帮你解决。
我就是用过大裤衩子的ueditor,怎么调用都不出来
- acking 评论了扩展 Yii2-ueditor-widget
@大裤衩子
http://www.yiichina.com/question/1077
我按照这上面调用为什么只出现textarea 没有工具条呢
或者Either 'name', or 'model' and 'attribute' properties must be specified.报错页面源码上面没有调用到js css 是不是 UEditorAsset 这个配置出现了问题?