- Notifications
You must be signed in to change notification settings - Fork65
Simple Image Tool for Editor.js 2.0
License
NotificationsYou must be signed in to change notification settings
editor-js/simple-image
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Provides Image Blocks for theEditor.js.
Works only with pasted image URLs and requires no server-side uploader.
Get the package
yarn add @editorjs/simple-image
Include module at your application
importSimpleImagefrom"@editorjs/simple-image";
Optionally, you can load this tool from CDNJsDelivr CDN
Add a new Tool to thetools property of the Editor.js initial config.
vareditor=EditorJS({ ...tools:{ ...image:SimpleImage,}...});
This Tool has no config params
Add border
Stretch to full-width
Add background
| Field | Type | Description |
|---|---|---|
| url | string | image's url |
| caption | string | image's caption |
| withBorder | boolean | add border to image |
| withBackground | boolean | need to add background |
| stretched | boolean | stretch image to screen's width |
{"type":"image","data": {"url":"https://www.tesla.com/tesla_theme/assets/img/_vehicle_redesign/roadster_and_semi/roadster/hero.jpg","caption":"Roadster // tesla.com","withBorder":false,"withBackground":false,"stretched":true }}About
Simple Image Tool for Editor.js 2.0
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors12
Uh oh!
There was an error while loading.Please reload this page.

