@groupher/editor-alert

1.0.27 • Public • Published

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

Field Type Description
title string warning title
desc string warning desc
alert string alert type
{
    "type" : "quote",
    "data" : {
        "title" : ""note",
        "desc" : "this is a warning",
        "type" : "warning"
    }
}

Package Sidebar

Install

npm i @groupher/editor-alert

Weekly Downloads

10

Version

1.0.27

License

MIT

Unpacked Size

56.8 kB

Total Files

11

Last publish

Collaborators

  • mydearxym