All Projects → editor-js → simple-image

editor-js / simple-image

Licence: MIT License
Simple Image Tool for Editor.js 2.0

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to simple-image

inline-code
Inline-Code Tool for Editor.js 2.0
Stars: ✭ 32 (-11.11%)
Mutual labels:  codex, codex-editor
link
Link Tool for Editor.js 2.0
Stars: ✭ 61 (+69.44%)
Mutual labels:  codex, codex-editor
editorjs-inline
Inline-Editor.js Tool for Editor.js
Stars: ✭ 23 (-36.11%)
Mutual labels:  codex
language-planner
Official Code for "Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agents"
Stars: ✭ 84 (+133.33%)
Mutual labels:  codex
zsh codex
This is a ZSH plugin that enables you to use OpenAI's Codex AI in the command line.
Stars: ✭ 787 (+2086.11%)
Mutual labels:  codex
fix
Allows you to use OpenAI Codex to fix errors in the command line.
Stars: ✭ 72 (+100%)
Mutual labels:  codex
editorjs-layout
Layout block tool for Editor.js.
Stars: ✭ 45 (+25%)
Mutual labels:  codex-editor
vim codex
This is a simple plugin for Vim that allows you to use OpenAI Codex.
Stars: ✭ 181 (+402.78%)
Mutual labels:  codex
warning
Warning Tool for CodeX Editor 2.0
Stars: ✭ 15 (-58.33%)
Mutual labels:  codex
capella
Cloud service for image storage and delivery
Stars: ✭ 116 (+222.22%)
Mutual labels:  codex
Codex
A free note-taking software for programmers and Computer Science students
Stars: ✭ 242 (+572.22%)
Mutual labels:  codex
awesome-codex
A list dedicated to products, demos and articles related to 🤖 OpenAI's Codex.
Stars: ✭ 115 (+219.44%)
Mutual labels:  codex
list
List Tool for Editor.js 2.0
Stars: ✭ 40 (+11.11%)
Mutual labels:  codex-editor
editorjs-style
Inline-style Tool for Editor.js
Stars: ✭ 23 (-36.11%)
Mutual labels:  codex
Editor.js
A block-styled editor with clean JSON output
Stars: ✭ 17,061 (+47291.67%)
Mutual labels:  codex-editor
codex.notes
WIP: crossplatform desktop notes application based on Electron and Editor.js
Stars: ✭ 102 (+183.33%)
Mutual labels:  codex-editor

Simple Image Tool

Provides Image Blocks for the Editor.js.

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

Installation

Install via NPM

Get the package

npm i --save-dev @editorjs/simple-image

Include module at your application

const SimpleImage = require('@editorjs/simple-image');

Download to your project's source dir

  1. Upload folder dist from repository
  2. Add dist/bundle.js file to your page.

Load from CDN

You can load specific version of package from jsDelivr CDN.

https://cdn.jsdelivr.net/npm/@editorjs/simple-image@latest

Then require this script on page with Editor.js.

<script src="..."></script>

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

Tool's settings

  1. Add border

  2. Stretch to full-width

  3. Add background

Output data

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
    }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].