Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Image Tool

Provides Image Blocks for theEditor.js.

Works only with pasted image URLs and requires no server-side uploader.

Installation

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

Usage

Add a new Tool to thetools property of the Editor.js initial config.

vareditor=EditorJS({  ...tools:{    ...image:SimpleImage,}...});

Config Params

This Tool has no config params

Tool's settings

  1. Add border

  2. Stretch to full-width

  3. Add background

Output data

FieldTypeDescription
urlstringimage's url
captionstringimage's caption
withBorderbooleanadd border to image
withBackgroundbooleanneed to add background
stretchedbooleanstretch 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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors12


[8]ページ先頭

©2009-2026 Movatter.jp