@groupher/editor-warning

1.0.15 • Public • Published

Warning Tool

Provides Code Blocks for the Editor.js.

image

Installation

Install via NPM

Get the package

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

Include module at your application

const Warning = require('@groupher/editor-warning');

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: {
    ...
    warning: Warning,
  },
  
  ...
});

Output data

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

/@groupher/editor-warning/

    Package Sidebar

    Install

    npm i @groupher/editor-warning

    Weekly Downloads

    2

    Version

    1.0.15

    License

    MIT

    Unpacked Size

    32.5 kB

    Total Files

    8

    Last publish

    Collaborators

    • mydearxym