2.3.6 • Published 4 years ago

@vietlongn/editorjs-carousel v2.3.6

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

npm.io

Carousel Tool

Carousel/Gallery Block for the Editor.js.

npm.io

Features

  • Uploading file from the device
  • Preload image

Note This Tool requires server-side implementation for file uploading. See backend response format for more details.

Installation

Manual downloading and connecting

  1. Upload folder dist from repository
  2. Add dist/bundle.js file to your page.

Usage

Add a new Tool to the tools property of the Editor.js initial config.

import Carousel from 'Carousel';

// or if you inject ImageTool via standalone script
const Carousel = window.Carousel;
 
var editor = EditorJS({
  ...

  tools: {
    ...
    image: {
      class: Carousel,
      config: {
        endpoints: {
          byUrl: 'http://localhost:8008/fetchUrl', // Your endpoint that provides uploading by Url
        }
      }
    }
  }

  ...
});
2.3.6

4 years ago

2.3.5

4 years ago

2.3.4

4 years ago

2.3.3

4 years ago