Image Plugin for EditorJs
Enable your EditorJS to embed an image.
Credits
Created with ❤ by Muhammad Affandes
Installation
With package manager NPM or Yarn
Run following command to install plugins.
npm install image-editorjs
Or
yarn add image-editorjs
Load via CDN
Place following line at the end of your HTML body tag.
......
Usage
Insert following snippets to your EditorJs configuration object.
; // Your EditorJs initconst editorjs = // ... tools: image: class: ImageEditor // ...;
Config Params
Params | Description |
---|---|
placeholder |
String. (Optional) Your placeholder |
Output Data
Image will be wrapped with div
tag with .aff-image-wrapper
class.