From 5edba62e91c40bab258d162d9226a97318b989d2 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 7 Mar 2024 12:04:07 +0100 Subject: [PATCH] fix(Preview): allow removing Preview with backspace * Also only allow link marks inside the Preview. * See #5442 for list of other follow up fixes for Previews Signed-off-by: Max --- src/nodes/Preview.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nodes/Preview.js b/src/nodes/Preview.js index 94628bda3a0..03f6a43491c 100644 --- a/src/nodes/Preview.js +++ b/src/nodes/Preview.js @@ -34,7 +34,11 @@ export default Node.create({ content: 'text?', - defining: true, + atom: true, + + marks: 'link', + + isolating: true, addOptions() { return {