techguy/laravel-ckeditor

JavaScript WYSIWYG web text editor (for laravel).

Installs: 10 241

Dependents: 0

Suggesters: 0

Security: 0

Stars: 10

Watchers: 4

Forks: 1

Language:JavaScript

v1.5.5 2022-02-11 16:51 UTC

This package is auto-updated.

Last update: 2024-04-15 00:20:22 UTC


README

68747470733a2f2f696d616765732e673263726f77642e636f6d2f75706c6f6164732f70726f647563742f696d6167652f6c617267655f64657461696c2f6c617267655f64657461696c5f31666139306431633037653039316463313066653636376230623937636332622f636b656469746f722d342e706e67

68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6465762d746563686775792f6c61726176656c2d636b656469746f72 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6465762d746563686775792f6c61726176656c2d636b656469746f72 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6465762d746563686775792f6c61726176656c2d636b656469746f72 68747470733a2f2f706f7365722e707567782e6f72672f746563686775792f6c61726176656c2d636b656469746f722f762f737461626c65 68747470733a2f2f706f7365722e707567782e6f72672f746563686775792f6c61726176656c2d636b656469746f722f646f776e6c6f616473

CKEditor Package

Note

This is NOT the official CKEDITOR package.

CKEDITOR officially has its own composer package since 2014. Instead of using this package, we recommend you follow the official CKEditor installation instructions with package managers

Installation

Set up package

composer require techguy/laravel-ckeditor

Add ServiceProvider

Edit config/app.php, add the following file to Application Service Providers section. Use this for laravel 5.5 and below

Unisharp\Ckeditor\ServiceProvider::class,

Publish the resources

php artisan vendor:publish --tag=ckeditor

Usage

Default way (initiate by name or id) :

    <script; src="/vendor/unisharp/laravel-ckeditor/ckeditor.js"></script>
    <script>
        CKEDITOR.replace( 'article-ckeditor' );
    </script>

Or if you want to initiate by jQuery selector :

    <script; src="/vendor/unisharp/laravel-ckeditor/ckeditor.js"></script>
    <script; src="/vendor/unisharp/laravel-ckeditor/adapters/jquery.js"></script>
    <script>
        $('textarea').ckeditor();
        // $('.textarea').ckeditor(); // if class is prefered.
    </script>

File Uploader Integration

Instead of using KCFinder, we recommend laravel-filemanager for the file uploader integration for better laravel user access control and specific per user folders.