editorjs-style icon indicating copy to clipboard operation
editorjs-style copied to clipboard

Is there any example of how to implement this plugin to VueJS?

Open lbphet19 opened this issue 1 year ago • 1 comments

lbphet19 avatar Aug 24 '22 04:08 lbphet19

`//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: image

lbphet19 avatar Aug 24 '22 04:08 lbphet19