midium / laravel-ckeditor by midium
forked from UniSharp/laravel-ckeditor

JavaScript WYSIWYG web text editor (for Laravel 5).
869
1
1
Package Data
Maintainer Username: midium
Package Create Date: 2016-02-01
Package Last Update: 2016-02-01
Home Page:
Language: JavaScript
License: GPL-2.0+
Last Refreshed: 2024-04-25 15:13:44
Package Statistics
Total Downloads: 869
Monthly Downloads: 10
Daily Downloads: 1
Total Stars: 1
Total Watchers: 1
Total Forks: 1
Total Open Issues: 0

CKEditor Package

Installation

Set up package

composer require midium/laravel-ckeditor:dev-master

Add ServiceProvider

Edit config/app.php, add the following file to Application Service Providers section.

Midium\Ckeditor\ServiceProvider::class,

Publish the package's config and assets

php artisan vendor:publish --tag=ckedit

Usage

Default way (initiate by name or id) :

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

Or if you want to initiate by jQuery selector :

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

File Uplader 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.