Skip to content

Commit

Permalink
fix issue with setting keymap of embedded editor
Browse files Browse the repository at this point in the history
  • Loading branch information
elpoelma committed Nov 23, 2023
1 parent 0a2472c commit 7f953ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eighty-balloons-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lblod/ember-rdfa-editor": patch
---

Fix issue with setting keymap of embedded editor
2 changes: 1 addition & 1 deletion addon/components/ember-node/embedded-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default class EmbeddedEditor extends Component<Args> {
...undoRedoMap,
};
} else {
return { ...embeddedEditorBaseKeymap, ...undoRedoMap };
return { ...embeddedEditorBaseKeymap(this.schema), ...undoRedoMap };
}
}

Expand Down

0 comments on commit 7f953ce

Please sign in to comment.