fix: Backtick shortcut not applied correctly with composition (#6659)

* fix: Backtick shortcut not applied correctly with composition

* docs
This commit is contained in:
Tom Moor
2024-03-10 08:59:15 -06:00
committed by GitHub
parent fe4c2fb7d6
commit 9f55645655
2 changed files with 28 additions and 17 deletions

View File

@@ -61,8 +61,12 @@ export default class Code extends Mark {
}
get plugins() {
const codeCursorPlugin = codemark({
markType: this.editor.schema.marks.code_inline,
})[0];
return [
...codemark({ markType: this.editor.schema.marks.code_inline }),
codeCursorPlugin,
new Plugin({
props: {
// Typing a character inside of two backticks will wrap the character