Inline Small tool to make text fragments small for the Editor.js.
Add a new Tool to the tools
property of the Editor.js initial config.
var editor = EditorJS({
...
tools: {
...
inlinesmall: {
class: InlineSmall,
},
},
...
});
This Tool has no config params
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."
}
}