yii2-ueditor-widget icon indicating copy to clipboard operation
yii2-ueditor-widget copied to clipboard

不能进行设置是什么问题

Open zyzplzyz opened this issue 7 years ago • 1 comments

我在yii2.0普通版中通过composer加载了插件,但是为什么我就是不能进行设置 'clientOptions' => [ //编辑区域大小 'initialFrameHeight' => '200', //设置语言 'lang' =>'en', //中文为 zh-cn //定制菜单 'toolbars' => [ [ 'fullscreen', 'source', 'undo', 'redo', '|', 'fontsize', 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', '|', 'lineheight', '|', 'indent', '|' ], ] 这段代码没有起作用,请问下是什么原因

zyzplzyz avatar Sep 14 '17 06:09 zyzplzyz

@zyzplzyz

<?= $form->field($model, 'subject')->widget(\kucha\ueditor\UEditor::class, [
                    'clientOptions' => [
                        //编辑区域大小
                        'initialFrameHeight' => '200',
                        //设置语言
                        'lang'               => 'en', //中文为 zh-cn
                        //定制菜单
                        'toolbars'           => [
                            [
                                'fullscreen', 'source', 'undo', 'redo', '|',
                                'fontsize',
                                'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'removeformat',
                                'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|',
                                'forecolor', 'backcolor', '|',
                                'lineheight', '|',
                                'indent', '|'
                            ],
                        ]
                    ]
                ]) ?>

BigKuCha avatar Sep 14 '17 07:09 BigKuCha