Skip to content
Quote Tool for Editor.js 2.0
Branch: master
Clone or download
gohabereg Feature/renaming (#12)
* Rename all occurences

* 2.2.0

* Update packages

* Rename repo

* Create .npmignore

* Update
Latest commit 7f2e714 Mar 2, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist Feature/renaming (#12) Mar 2, 2019
src Feature/renaming (#12) Mar 2, 2019
.npmignore Feature/renaming (#12) Mar 2, 2019
LICENSE quote initial Jul 31, 2018 Feature/renaming (#12) Mar 2, 2019
package.json Feature/renaming (#12) Mar 2, 2019

Quote Tool

Provides Quote Blocks for the Editor.js.


Install via NPM

Get the package

npm i --save-dev @editorjs/quote

Include module at your application

const Quote = require('@editorjs/quote');

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.

Then require this script on page with Editor.js.

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


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

var editor = EditorJS({
  tools: {
    quote: Quote,

Or init Quote Tool with additional settings

var editor = EditorJS({
  tools: {
    quote: {
      class: Quote,
      inlineToolbar: true,
      shortcut: 'CMD+SHIFT+O',
      config: {
        quotePlaceholder: 'Enter a quote',
        captionPlaceholder: 'Quote\'s author',

Config Params

Field Type Description
quotePlaceholder string quote's placeholder string
captionPlaceholder string caption's placeholder string

Tool's settings

You can choose alignment for the quote. It takes no effect while editing, but saved the «alignment» param.

Output data

Field Type Description
text string quote's text
caption string caption or an author
alignment string left or center
    "type" : "quote",
    "data" : {
        "text" : "The unexamined life is not worth living.",
        "caption" : "Socrates",
        "alignment" : "left"
You can’t perform that action at this time.