0.1.4 • Published 1 year ago
@fudgi-packages/editorjs-simple-image v0.1.4
Simple Image Tool
Provides Image Blocks for the Editor.js. Based on https://github.com/editor-js/simple-image and https://github.com/editor-js/simple-image-tutorial/tree/master
Works with pasted images, inserting images via toolbox. Converts image at BASE 64

Installation
Get the package
yarn add @fudgi-packages/editorjs-simple-imagenpm i @fudgi-packages/editorjs-simple-imageInclude module at your application
import SimpleImage from "@fudgi-packages/editorjs-simple-image";Usage
Add a new Tool to the tools property of the Editor.js initial config.
var editor = EditorJS({
...
tools: {
...
image: SimpleImage,
}
...
});Config Params
This Tool has no config params
{
"type": "image",
"data": {
"url": "https://www.tesla.com/tesla_theme/assets/img/_vehicle_redesign/roadster_and_semi/roadster/hero.jpg",
"caption": "Roadster // tesla.com"
}
}