codex-team / editor.js

A block-style editor with clean JSON output
https://editorjs.io
Apache License 2.0
28.42k stars 2.07k forks source link

Can't get the SimpleImage plugin to show #1796

Closed morgan-blondellet closed 2 years ago

morgan-blondellet commented 3 years ago

Hi all,

this is my first time using editorjs and i can't seem to make SImpleImage work. I have the simpleImage js file on my projetc, i added the needed config image: SimpleImage but i can't add a block image. Am i doing something wrong ? I installed some other plugins that work just fine.

const editor = new EditorJS({
    holder: 'editorjs',
    tools: {
        header: {
            class: Header,
            inlineToolbar: ['marker', 'link'],
            config: {
                placeholder: 'Header'
            },
            shortcut: 'CMD+SHIFT+H'
        },
        link: {
            class: LinkTool,
            inlineToolbar: true
        },
        list: {
            class: NestedList,
            inlineToolbar: true,
            shortcut: 'CMD+SHIFT+L'
        },
        delimiter: Delimiter,
        table: {
            class: Table,
            inlineToolbar: true,
            shortcut: 'CMD+ALT+T'
        },
        image: SimpleImage,
    },
 }
);
syntaxbullet commented 2 years ago

you should be able to paste an image and it should create a simple-image block for you