1.1.0 • Published 5 years ago

editorjstagger v1.1.0

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

npm.io

Tagger

Tag Block For EditorJS

npm.io

Prerequisites

Installation

Install via NPM

Get the package

npm i editorjstagger --save

Include module at your application

import Tagger from 'node_module/editorjstagger/dist/bundle.js';

Other methods

Loading from CDN

<script src="https://cdn.jsdelivr.net/npm/editorjstagger@latest/dist/bundle.js"></script>

Usage

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

import Tagger from 'node_module/editorjstagger/dist/bundle.js';
// or if you inject Tagger via standalone script
const Tagger = window.Tagger;

var editor = new EditorJS({
  ...

  tools: {
    ...
    tag: {
      class: Tagger,
      config: {
          // by default 5 if you want more than five tags change here
          limit: 5,
          // by default TagElement return a array with all tags e.g.. ['world', 'politics', 'trump']
          // if want something like this "world,politics,trump" you can set `as_a_string: true`
          as_a_string: false
      }
    }
  }

  ...
});

Config Params

Tagger supports these configuration parameters:

FieldTypeDescription
limitnumber: 5limit for tags how many you want
as_a_stringboolean: true or falseif you don't want tags as a array you can set true

|

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago