Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcuts convert a block to another type instead of creating a new block #2830

Open
LeylaKhb opened this issue Sep 26, 2024 · 0 comments
Open
Labels

Comments

@LeylaKhb
Copy link

LeylaKhb commented Sep 26, 2024

Shortcuts convert a block to another type instead of creating a new block.
Editor js config:

const editorConfig = {
       holder:  'editorjs',
       data: data,
       tools: {
           header: {
               class: Header,
               config: {
                   placeholder: 'Введите заголовок',
               },
               shortcut: 'CMD+SHIFT+H'
           },
           paragraph: {
               class: Paragraph,
               config: {
                   placeholder: 'Введите текст...',
               },
               shortcut: 'CMD+SHIFT+P'
           },
           image: {
               class: ImageTool,
               config: {
                   endpoints: {
                       byFile: imageUploadUrl || "",
                   }
               },
               shortcut: 'CMD+SHIFT+I'
           },
           list: {
               class: List,
               shortcut: 'CMD+SHIFT+L'
           },
           table: {
               class: Table,
               shortcut: 'CMD+SHIFT+T'
           },
       }
    }

Steps to reproduce:
It works in demo

Expected behavior:
creating a new block as in the demo

Screenshots:

2024-09-26.14.54.37.mov

Device, Browser, OS: MacOS, Chrome

Editor.js version: 2.30.4

Plugins you use with their versions:
"https://cdn.jsdelivr.net/npm/@editorjs/[email protected]",
"https://cdn.jsdelivr.net/npm/@editorjs/[email protected]",
"https://cdn.jsdelivr.net/npm/@editorjs/[email protected]",
"https://cdn.jsdelivr.net/npm/@editorjs/[email protected]",
"https://cdn.jsdelivr.net/npm/@editorjs/[email protected]"

@LeylaKhb LeylaKhb added the bug label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant