I use 2migos ckeditor plugins in yii2, I was able to create an example of plugins from plugin_sdk_sample , it works fine in a raw project, but when I put this in a yii2 project, the button does not appear.
I put the custom plugin in \ vendor \ 2amigos \ yii2-ckeditor-widget \ src \ assets \ ckeditor \ plugins \ using plugin.js and the png icon with the folder structure as described in the manual. I think the problem is adding it to config.
I tried following in vendor \ 2amigos \ yii2-ckeditor-widget \ src \ assets \ ckeditor \ config.js
CKEDITOR.editorConfig = function( config ) { config.extraPlugins = 'timestamp'; };
also tried the following:
<?= $form->field($model, 'content')->widget(CKEditor::className(), [ 'clientOptions' => ['config.extraPlugins' => 'timestamp'], 'options' => ['rows' => 6], 'preset' => 'basic' ]) ?>
but none of them work and show a button, what am I doing wrong here?
source share