editorjs-panorama
v1.1.0
Published
Panorama Image Tool for Editor.js
Downloads
3
Maintainers
Readme
Panorama Image Tool
In general it's a copy of editor-js/[email protected]
Changes:
- Removed paste confing
- Removed upload by URL
- Removed "with border" and "with background" tune
- Changed icon and title
Installation
Install via NPM
Get the package
$ npm i editorjs-panorama
Include module at your application
import Panorama from 'editorjs-panorama';
Load from CDN
You can load a specific version of the package from jsDelivr CDN.
Require this script on a page with Editor.js.
<script src="https://cdn.jsdelivr.net/npm/editorjs-panorama"></script>
Download to your project's source dir
- Upload folder
dist
from repository - Add
dist/panorama.umd.js
file to your page.
Usage
var editor = EditorJS({
// ...
tools: {
// ...
panorama: {
class: Panorama,
config: {
endpoints: {
byFile: 'http://localhost:8008/uploadFile', // Your backend file uploader endpoint
}
}
}
},
// ...
});