From d3e991f977b68abdebd361341b15215fdb06c7e3 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 13 Oct 2026 08:07:00 -0400 Subject: [PATCH] fix: Restore selection outline on non-text block nodes (#14058) --- shared/editor/components/Styles.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index cd607aec8c..f9d6b4e31d 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -1000,6 +1000,15 @@ th .image .image-wrapper img { caret-color: transparent; } +/* Text blocks selected with the drag handle do not get an outline. */ +.ProseMirror-selectednode:not(p, h1, h2, h3, h4, h5, h6, ul, ol, li, blockquote, hr) { + outline: 2px solid ${props.readOnly ? "transparent" : props.theme.selected}; + + @media print { + outline: none; + } +} + .ProseMirror.dragging .ProseMirror-selectednode, .ProseMirror .${EditorStyleHelper.draggingSource} { opacity: 0.25;