Skip to content

liip/editorjs-inline-small

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InlineSmall Tool

Inline Small tool to make text fragments small for the Editor.js.

Installation

Usage

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

var editor = EditorJS({
  ...
  
  tools: {
    ...
    inlinesmall: {
      class: InlineSmall,
    },
  },
  
  ...
});

Config Params

This Tool has no config params

Output data

Marked text will be wrapped with a span tag with an small class.

{
    "type" : "text",
    "data" : {
        "text" : "This is really <span class=\"small\">small</span> text."
    }
}

About

InlineSmall Tool for Editor.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published