Reputation: 133
First run this command in command line. composer require unisharp/laravel-ckeditor
Add in service provider Unisharp\Ckeditor\ServiceProvider::class,
run this command php artisan vendor:publish --tag=ckeditor
add this code in my blade file js section
<script src="/vendor/unisharp/laravel-ckeditor/ckeditor.js"></script>
<script>
CKEDITOR.replace( 'article-ckeditor' );
</script>
there is no error but textarea show normal as like before
Upvotes: 1
Views: 1577
Reputation: 301
try to use the 'asset' method to access your ckeditor.js script from the vendor folder try it like this
<script src="{{ asset('/vendor/unisharp/laravel-ckeditor/ckeditor.js') }}"></script>
Upvotes: 1