An open API service indexing awesome lists of open source software.

https://github.com/cychann/editorjs-quote

Improved Editor.js Quote Block
https://github.com/cychann/editorjs-quote

editorjs editorjs-plugin editorjs-tool quote

Last synced: 20 days ago
JSON representation

Improved Editor.js Quote Block

Awesome Lists containing this project

README

        

# EditorJS Quote Block

Provides a wider range of style-type quote blocks for [Editor.js](https://editorjs.io/).

This library was contributed to the [Awesome Editor.js repository](https://github.com/editor-js/awesome-editorjs).

## Preview

![Quote Block Preview](assets/gifs/preview.gif)

## Installation

Get the package:

```bash
yarn add @cychann/editorjs-quote
```

Include module in your application:

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

## Usage

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

```javascript
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.