@batformat/multi-attaches

1.0.3 • Public • Published

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'
      }
    }
  }

  ...
});

Dependencies (0)

    Dev Dependencies (18)

    Package Sidebar

    Install

    npm i @batformat/multi-attaches

    Weekly Downloads

    2

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    34.5 kB

    Total Files

    9

    Last publish

    Collaborators

    • batformat