Giter Site home page Giter Site logo

ehsanmoodi / laravel-ckeditor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unisharp/laravel-ckeditor

1.0 2.0 0.0 9.05 MB

This is a fork from the official CKEditor branch (standard edition), wrap it to laravel package.

License: Other

PHP 0.38% JavaScript 60.39% CSS 37.87% HTML 1.36%

laravel-ckeditor's Introduction

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 unisharp/laravel-ckeditor

Add ServiceProvider

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

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.

laravel-ckeditor's People

Contributors

youchenlee avatar reinmar avatar oleq avatar mlewand avatar streamtw avatar lokimo avatar annatomanek avatar silvermirror10343 avatar fredck avatar jbaylina avatar napestershine avatar wwalc avatar f1ames avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar Ehsan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.