1.0.3 • Published 11 months ago

@taiwbi/editorjs-advancedparagraph v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

Advanced Paragraph for Editorjs

Paragraph tool with alignment and RTL support for Editorjs

Installation

Install via npm

npm i --save @taiwbi/editorjs-advancedparagraph

If you wish to use it on browser, I recommend to use browserify

Install using browserify

After installing the Advanced Paragraph and browserify package with npm run:

browserify -r @taiwbi/editorjs-advancedparagraph > bundle.js

then in your page do this:

<script src="bundle.js"></script>
<script>
  const AdvancedParagraph = require("@taiwbi/editorjs-advancedparagraph");
  /* ... */
</script>

Usage

const editor = new EditorJS({
  tools: {
    paragraph: {
      class: AdvancedParagraph,
      inlineToolbar: true,
    },
  },
});

If you wish to keep default editorjs paragraph and have advanced paragraph beside:

const editor = new EditorJS({
  tools: {
    AdvancedParagraph: {
      class: AdvancedParagraph,
      inlineToolbar: true,
    },
  },
});

if you use editorjs-html you can use built-in parser

const edjsParser = edjsHTML({
  paragraph: AdvancedParagraph.AdvancedParagraphParser /*, ...*/,
});
1.0.3

11 months ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago