mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 09:25:29 +08:00
fix: make blockquote shortcut work in starter-kit (#4995)
* fix: make blockquote shortcut work in starter-kit Because blockquote uses Mod-Shift-b, and bold uses Mod-b, the bold shortcut will override the blockquote shortcut if added to the extensions later. Fixes #4994 * chore: add changeset --------- Co-authored-by: Nick Perez <nicholas.perez@tiptap.dev>
This commit is contained in:
parent
5ccc2ad68f
commit
d5e10dc4b0
5
.changeset/five-tigers-kick.md
Normal file
5
.changeset/five-tigers-kick.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@tiptap/starter-kit": patch
|
||||
---
|
||||
|
||||
fix(starter-kit): make blockquote shortcut work in starter-kit
|
@ -139,14 +139,14 @@ export const StarterKit = Extension.create<StarterKitOptions>({
|
||||
addExtensions() {
|
||||
const extensions = []
|
||||
|
||||
if (this.options.blockquote !== false) {
|
||||
extensions.push(Blockquote.configure(this.options?.blockquote))
|
||||
}
|
||||
|
||||
if (this.options.bold !== false) {
|
||||
extensions.push(Bold.configure(this.options?.bold))
|
||||
}
|
||||
|
||||
if (this.options.blockquote !== false) {
|
||||
extensions.push(Blockquote.configure(this.options?.blockquote))
|
||||
}
|
||||
|
||||
if (this.options.bulletList !== false) {
|
||||
extensions.push(BulletList.configure(this.options?.bulletList))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user