From e608de93fb197f256b6cb1fae5fdc28f0ef81014 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 9 Feb 2024 19:38:05 -0500 Subject: [PATCH] fix: Unable to easily edit captions in Firefox, closes #6513 --- shared/editor/nodes/Image.tsx | 4 +++- shared/editor/nodes/Video.tsx | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/shared/editor/nodes/Image.tsx b/shared/editor/nodes/Image.tsx index f68a0a5c6..99daa9240 100644 --- a/shared/editor/nodes/Image.tsx +++ b/shared/editor/nodes/Image.tsx @@ -100,7 +100,9 @@ export default class Image extends SimpleImage { marks: "", group: "inline", selectable: true, - draggable: true, + // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1289000 + draggable: false, + atom: true, parseDOM: [ { tag: "div[class~=image]", diff --git a/shared/editor/nodes/Video.tsx b/shared/editor/nodes/Video.tsx index 04320a77b..c92e9121f 100644 --- a/shared/editor/nodes/Video.tsx +++ b/shared/editor/nodes/Video.tsx @@ -39,6 +39,9 @@ export default class Video extends Node { title: {}, }, group: "block", + selectable: true, + // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1289000 + draggable: false, defining: true, atom: true, parseDOM: [