i'm trying add oembed plugin ckeditor via 2amigos widget yii2.
i did following, can't seem button appear:
- i downloaded , copied oembed , widget plugins ckeditor plugins folder
i set clientoptions widget in form using code below:
$form->field($thecomment, 'comment')->widget(ckeditor::classname(), [ 'clientoptions' => ['config.extraplugins' => 'widget,oembed'], 'options' => ['rows' => 6], 'preset' => 'full' ])i altered full.php preset filworkinge adding following lines of code below:
'toolbargroups' => [ ['name' => 'document', 'groups' => ['mode', 'document', 'doctools']], ['name' => 'clipboard', 'groups' => ['clipboard', 'undo']], ['name' => 'editing', 'groups' => [ 'find', 'selection', 'spellchecker']], ['name' => 'forms'], '/', ['name' => 'basicstyles', 'groups' => ['basicstyles', 'colors','cleanup']], ['name' => 'paragraph', 'groups' => [ 'list', 'indent', 'blocks', 'align', 'bidi' ]], ['name' => 'links'], ['name' => 'insert'], '/', ['name' => 'styles'], ['name' => 'blocks'], ['name' => 'colors'], ['name' => 'tools'], ['name' => 'others'], '/', //added me ['name' => 'oembed'], //added me ],
not entirely sure if error in edit clientoptions, or in edit toolbargroups, or both!. thoughts on i'm doing wrong appreciated.
thanks!
plugin add in assets folder (example plugin spoiler) zarnica.dev\www\assets\dff59c5c\plugins\spoiler
<script>ckeditor.config.extraplugins = 'spoiler';</script> done!
Comments
Post a Comment