fix: Allow copy code block to clipboard in read-only

closes #5614
This commit is contained in:
Tom Moor
2023-07-29 23:24:50 -04:00
parent 20932a08d0
commit 1864ed605f
2 changed files with 7 additions and 3 deletions

View File

@@ -199,6 +199,10 @@ export default class CodeFence extends Node {
};
}
get allowInReadOnly() {
return true;
}
keys({ type, schema }: { type: NodeType; schema: Schema }) {
return {
"Shift-Ctrl-\\": toggleBlockType(type, schema.nodes.paragraph),