1.0.3 • Published 4 years ago

@batformat/multi-attaches v1.0.3

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

npm.io

Multi attaches Tool

Multi attaches Tool for the Editor.js.

This tool allows you to attach files to your articles.

Example

Get the package

You can get the package using any of these ways.

Install via npm

npm i --save-dev @batformat/multi-attaches

Include module at your application

const MultiAttachesTool = require('@batformat/multi-attaches');

Download to your project's source dir

  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.

var editor = EditorJS({
  ...

  tools: {
    ...
    multiAttaches: {
      class: MultiAttachesTool,
      config: {
        endpoint: 'http://localhost:8008/uploadFile'
      }
    }
  }

  ...
});