We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cf3d96 commit d0003b1Copy full SHA for d0003b1
packages/core/src/schema/blocks/createSpec.ts
@@ -68,7 +68,11 @@ export type CustomBlockImplementation<
68
export function applyNonSelectableBlockFix(nodeView: NodeView, editor: Editor) {
69
nodeView.stopEvent = (event) => {
70
// Ensures copy events are handled by the browser and not by ProseMirror.
71
- if (event.type === "copy" || event.type === "cut") {
+ if (
72
+ event.type === "copy" ||
73
+ event.type === "cut" ||
74
+ event.type === "paste"
75
+ ) {
76
return true;
77
}
78
// Blurs the editor on mouse down as the block is non-selectable. This is
0 commit comments