codex-team / codex-team/editor.js
Shortcuts convert a block to another type instead of creating a new block
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
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:
https://github.com/user-attachments/assets/7b8ea39e-5757-4b59-b5d2-29162e0b98ef
Device, Browser, OS: MacOS, Chrome
Editor.js version: 2.30.4
Plugins you use with their versions:
"https://cdn.jsdelivr.net/npm/@editorjs/header@2.8.7",
"https://cdn.jsdelivr.net/npm/@editorjs/paragraph@2.11.6",
"https://cdn.jsdelivr.net/npm/@editorjs/image@2.9.3",
"https://cdn.jsdelivr.net/npm/@editorjs/list@1.10.0",
"https://cdn.jsdelivr.net/npm/@editorjs/table@2.4.1"
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.