2amigos / yii2-ckeditor-widget

CKEditor WYSIWYG widget for Yii2.
https://2amigos.us/open-source/ckeditor-widget
Other
172 stars 111 forks source link

error register new plugin #112

Closed wibiesana closed 7 years ago

wibiesana commented 7 years ago

i try to register new plugin i do exactly as the example but i get this error

> GET http://localhost/pbckcode/plugin.js?t=H5SE 404 (Not Found)
> append @ ckeditor.js:87
> appendTo @ ckeditor.js:63
> v @ ckeditor.js:235
> load @ ckeditor.js:235
> load @ ckeditor.js:238
> k @ ckeditor.js:239
> (anonymous) @ ckeditor.js:240
> n @ ckeditor.js:250
> (anonymous) @ ckeditor.js:249
> (anonymous) @ ckeditor.js:475
> (anonymous) @ ckeditor.js:238
> g @ ckeditor.js:233
> n @ ckeditor.js:234
> q @ ckeditor.js:234
> (anonymous) @ ckeditor.js:234
> ckeditor.js:238 Uncaught Error: [CKEDITOR.resourceManager.load] Resource name "pbckcode" was not found at "/pbckcode/plugin.js?t=H5SE".
>     at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.resourceManager.<anonymous> (ckeditor.js:238)
>     at g (ckeditor.js:233)
>     at Array.n (ckeditor.js:234)
>     at q (ckeditor.js:234)
>     at HTMLScriptElement.CKEDITOR.env.ie.e.$.onerror (ckeditor.js:235)
tonydspaniard commented 7 years ago

Have you tried accessing your plugin directly from the browser? http://localhost/pbckcode/plugin.js? can you see the file?

wibiesana commented 7 years ago

fix, thanks for the fast response

wibiesana commented 7 years ago

the problem now is im stuck on upload image plugin can u please write example about it

tonydspaniard commented 7 years ago

@wibiesana I am glad you fix the issue. The problem with the upload image plugin I believe is related to the plugin itself. If you follow the instructions of installation by ckeditor and translate the configuration into the clientOptions attribute it shouldn't be a problem.