I am having trouble to add plugins using unisharp/laravel-ckeditor stander editor for laravel 5.1. I can see the editor but not the plugins, I am adding. In my:
ckeditor.blade.php
<script src="/vendor/unisharp/laravel-ckeditor/ckeditor.js"></script> <script src="/vendor/unisharp/laravel-ckeditor/adapters/jquery.js"></script> <script> $('textarea').ckeditor(); </script>and in my config.js located in vendor/unisharp/laravel-ckeditor, I added
{ name: 'alignment', groups: [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ] },
// Justify paragraph format config.extraPlugins = 'justify';
I also have the plugin installed and added the services provider as well but nothing shows. Does anybody know?
Hello,
I have the same problem? Did you solve it jose? I put my plugin into the folder vendor/unisharp/laravel-ckeditor/plugins.
My browser gives me the following error:
but Uncaught Error: [CKEDITOR.resourceManager.load] Resource name "widgetbootstrap" was not found at "http://example.com/vendor/unisharp/laravel-ckeditor/plugins/widgetbootstrap/plugin.js?t=FB99".
How can I solve it?
to add plugin to ckeditor : 1.copy your plugin to your plugin folder 2. add following line to your config.js in this example wpmore is my plugin folder name
CKEDITOR.config.extraPlugins = 'wpmore';
I found my mistake:
you have to put it into the folder laravel/public/vendor and not laravel/vendor
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community