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