Mention Tool for Editor.js
npm install @groupher/editor-mentionProvides Code Blocks for the Editor.js.
Get the package
``shell`
npm i --save-dev @groupher/editor-mention
Include module at your application
`javascript`
const Mention = require('@groupher/editor-mention');
1. Upload folder dist from repositorydist/bundle.js
2. Add file to your page.
Add a new Tool to the tools property of the Editor.js initial config.
`javascript`
var editor = EditorJS({
...
tools: {
...
mention: Mention,
},
...
});
| Field | Type | Description |
| --------- | -------- | -------------------- |
| text | string | code's text |
`json``
{
"type" : "text",
"data" : {
"text" : "hello mydearxym"
}
}