1.0.27 • Published 3 years ago

@groupher/editor-alert v1.0.27

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

Alert Tool

Provides Code Blocks for the Editor.js.

alert-demo

Installation

Install via NPM

Get the package

npm i --save-dev @groupher/editor-alert

Include module at your application

const Alert = require('@groupher/editor-alert');

Download to your project's source dir

  1. Upload folder dist from repository
  2. Add dist/bundle.js file to your page.

Usage

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

var editor = EditorJS({
  ...
  
  tools: {
    ...
    alert: Alert,
  },
  
  ...
});

Output data

FieldTypeDescription
titlestringwarning title
descstringwarning desc
alertstringalert type
{
    "type" : "quote",
    "data" : {
        "title" : ""note",
        "desc" : "this is a warning",
        "type" : "warning"
    }
}
1.0.27

3 years ago

1.0.26

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.19

3 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago