editorjs-style
editorjs-style copied to clipboard
Is there any example of how to implement this plugin to VueJS?
`//import import EditorJSStyle from "editorjs-style"
//code: window.editor = new EditorJS({ holder: "codex-editor",
inlineToolbar: ['bold', 'italic', 'link',],
data: {
"time": 1550476186479,
"blocks": [ {
type: 'paragraph',
data: {
text: 'test <editorjs-style style="background-color: pink;">editorjs-style</editorjs-style> test',
},
},],
"version": "2.8.1"
},
tools: {
style:
{
class: EditorJSStyle.StyleInlineTool
},
},`
If i comment the part style: { class: EditorJSStyle.StyleInlineTool },
the editor works as expected. But when i include these line i got the following error: