1.1.0 • Published 1 year ago

editorjs-panorama v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

npm.io

Panorama Image Tool

In general it's a copy of editor-js/image@2.9.0

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

  1. Upload folder dist from repository
  2. 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
        }
      }
    }
  },
  // ...
});