1.0.17 • Published 3 years ago

@groupher/editor-paragraph v1.0.17

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years ago

npm.io

Paragraph Tool for Editor.js

Basic text Tool for the Editor.js.

Installation

Install via NPM

Get the package

npm i --save-dev @editorjs/paragraph

Include module at your application

const Paragraph = require('@editorjs/paragraph');

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/paragraph@2.0.2

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: {
    ...
    paragraph: {
      class: Paragraph,
      inlineToolbar: true,
    },
  }
  
  ...
});

Config Params

This Tool has no config params

Output data

FieldTypeDescription
textstringparagraph's text
{
    "type" : "paragraph",
    "data" : {
        "text" : "Check out our projects on a <a href=\"https://github.com/codex-team\">GitHub page</a>.",
    }
}
1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago