1.0.7 • Published 2 years ago

editorjs-carousel v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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: {
    ...
    carousel: {
                    class: Carousel,
                    config: {
                        endpoints: {
                            byFile: "URL_FETCH",
                        }
                    }
                },
  }

  ...
});
1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago