editorjs-image 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "editorjs-image",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Image tool plugin for Editor.js",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -14,11 +14,6 @@
14
14
  "tool",
15
15
  "variables"
16
16
  ],
17
- "devDependencies": {
18
- "css-loader": "^6.8.1",
19
- "style-loader": "^3.3.3",
20
- "webpack-cli": "^5.1.4"
21
- },
22
17
  "author": "xkzl",
23
18
  "license": "GPL",
24
19
  "repository": {
@@ -3,13 +3,10 @@
3
3
  // Supports : Image Float Left, Image float right
4
4
 
5
5
  import './image-tool-tune.css';
6
-
7
- import Cropper from './cropper.js';
8
- import './cropper.css';
6
+ import Cropper from 'cropperjs';
9
7
 
10
8
  export default class {
11
9
 
12
-
13
10
  constructor( { api, data, config, block } ) {
14
11
 
15
12
  this.settings = [
package/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
- const ImageToolTune = require( "./image-tool-tune" ).default;
2
- module.exports = ImageToolTune;
1
+ const ImageTool = require( "./image-tool-tune" ).default;
2
+ module.exports = ImageTool;