1.0.4 • Published 11 months ago

@cychann/editorjs-quote v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

EditorJS Quote Block

Provides a wider range of style-type quote blocks.

Preview

Quote Block Preview

Installation

Get the package:

yarn add @cychann/editorjs-quote

Include module in your application:

import Quote from "@cychann/editorjs-quote";

Usage

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

const editor = new EditorJS({
  holder: "editor",
  tools: {
    quote: {
      class: Quote,
      config: {
        defaultType: "quotationMark",
      },
      shortcut: "CMD+SHIFT+O",
    },
  },
});

Configuration Options

  • defaultType: The default type of the quote block. Possible values are:
    • quotationMark: Uses the quotation mark icon. (Default)
    • verticalLine: Uses a vertical line style.
    • boxed: Uses a boxed style.
1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago