1
votes

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

1
Try JQuery selector <script> $('textarea').ckeditor(); </script> stackoverflow.com/questions/47935623/…Divine
its not workingShubhra Sarker
Any error in console?Divine
no error. and i check it get the file of ckeditor.jsShubhra Sarker
/public/vendor/unisharp/laravel-ckeditor/ckeditor.js is this the path?Divine

1 Answers

1
votes

try to use the 'asset' method to access your ckeditor.js script from the vendor folder try it like this