Multi attaches Tool
Multi attaches Tool for the Editor.js.
This tool allows you to attach files to your articles.
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
- Upload folder
dist
from repository - 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'
}
}
}
...
});