Skip to content
On this page

Subscript

A very small characters just below the line of text.

Usage

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

js
import { Subscript } from "@ageesea/text-toolkit"

let editor = EditorJS({
  ...

  tools: {
    ...
    subscript: Subscript,
  }

  ...
});

Config Params

This Tool has no config params

Output Data

Subscript text will be wrapped with a sub tag.

FieldTypeDescription
textstringparagraph's text
json
{
  "type" : "paragraph",
  "data" : {
    "text" : "x<sub>2</sub>",
  }
}

Released under the MIT License