Closed code123xy closed 5 years ago
This is my code:
$this->registerJs("CKEDITOR.plugins.addExternal('pastefromword', '" . Yii::$app->request->BaseUrl . "/pastefromword/plugin.js', '');"); ... echo $form->field($model, 'name')->widget( CKEditor::classname(), [ 'options' => ['rows'=>8], 'preset' => 'custom', 'clientOptions'=>[ 'extraPlugins' => 'pastefromword', 'toolbarGroups' => [ ['name' => 'basicstyles', 'groups' => ['basicstyles', 'cleanup']], ['name' => 'colors'], ['name' => 'pastefromword'], ] ] ]);
I downloaded plugin in web folder. There is no errors in my console but button isn't showing up.
Fixed. For pastefromword to work, you also need to download clipboard plugin.
This is my code:
I downloaded plugin in web folder. There is no errors in my console but button isn't showing up.