Skip to content

Build your personal knowledge base with Trilium Notes

feat(ckeditor): disable spellchecking for shortcuts

Elian Doran04cd6310213a
diff --git a/packages/ckeditor5-keyboard-marker/src/kbdediting.ts b/packages/ckeditor5-keyboard-marker/src/kbdediting.ts
index 44db8299c3..ec605cdefc 100644
--- a/packages/ckeditor5-keyboard-marker/src/kbdediting.ts
+++ b/packages/ckeditor5-keyboard-marker/src/kbdediting.ts
@@ -29,7 +29,12 @@ export default class KbdEditing extends Plugin {
editor.conversion.attributeToElement( {
model: KBD,
- view: KBD
+ view: {
+ name: KBD,
+ attributes: {
+ spellcheck: 'false'
+ }
+ }
} );
editor.commands.add( KBD, new AttributeCommand( editor, KBD ) );