Naivete Precedes Misrepresentation
    Have ideas to improve npm?Join in the discussion! »

    ckeditor_wave

    2.0.10 • Public • Published

    CkeditorWave

    This gem integrates CKEditor 5 with CarrierWave to allow image upload.

    Installation

    Add this line to your application's Gemfile:

    gem 'ckeditor_wave', '~> 2.0'
    

    And then execute:

    $ bundle
    

    Or install it yourself as:

    $ gem install ckeditor_wave
    

    To generate and execute the migration, run:

    $ rails g ckeditor_wave
    $ rails db:migrate
    

    Add the following at the bottom of your application.js:

    //= require ckeditor_wave
    

    Add the following to your routes.rb file:

    mount CkeditorWave::Engine => 'ckeditor_wave'
    

    To attach CKEditor 5 to HTML forms, call the initiateCkeditor() function inside your application.js by wrapping in in a DOMContentLoaded EventListener and giving it one or more CSS selectors as arguments. For example:

    document.addEventListener('DOMContentLoaded', () => {
      initiateCkeditor('#editor1', '#editor2', '#editor3');
    });
    

    Dependencies

    To install CKEditor 5, download the 'classic editor build 10.0.1' ZIP package from this link and insert the ckeditor.js file inside you app/assets/javascripts folder. Alternatively, you can use the CDN also available from the same link.

    If you do not have the CarrierWave gem installed, please add the following to your Gemfile:

    gem 'carrierwave', '~> 1.2'
    

    And then execute:

    $ bundle
    

    Contributing

    Bug reports and pull requests are welcome on GitHub at https://github.com/evgeniradev/ckeditor_wave.

    License

    Licensed under the terms of GNU General Public License Version 3 or later.

    Install

    npm i ckeditor_wave

    DownloadsWeekly Downloads

    2

    Version

    2.0.10

    License

    GPL-3.0+

    Unpacked Size

    4.86 kB

    Total Files

    3

    Last publish

    Collaborators

    • avatar