From 87b2cb93a1e3f65269c92d766d37ca9673e3e403 Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Thu, 1 Oct 2020 12:40:40 +0300
Subject: [PATCH] rest of selections

---
 wax-prosemirror-layouts/src/layouts/EditorElements.js  | 10 +++++++++-
 .../src/document/DocumentHelpers.js                    |  2 +-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/wax-prosemirror-layouts/src/layouts/EditorElements.js b/wax-prosemirror-layouts/src/layouts/EditorElements.js
index b830a1842..5d4b2de16 100644
--- a/wax-prosemirror-layouts/src/layouts/EditorElements.js
+++ b/wax-prosemirror-layouts/src/layouts/EditorElements.js
@@ -12,7 +12,15 @@ export default css`
     color: ${th('colorText')};
 
     p::selection,
-    p span::selection {
+    h1::selection,
+    h2::selection,
+    h3::selection,
+    code::selection,
+    p span::selection,
+    h1 span::selection,
+    h2 span::selection,
+    h3 span::selection,
+    code span::selection {
       background-color: transparent;
     }
 
diff --git a/wax-prosemirror-utilities/src/document/DocumentHelpers.js b/wax-prosemirror-utilities/src/document/DocumentHelpers.js
index 3815010c8..969c6daf1 100644
--- a/wax-prosemirror-utilities/src/document/DocumentHelpers.js
+++ b/wax-prosemirror-utilities/src/document/DocumentHelpers.js
@@ -96,7 +96,7 @@ const findAllMarksWithSameId = (state, mark) => {
   return allMarksWithSameId;
 };
 
-// From https://discuss.prosemirror.net/t/expanding-the-selection-to-the-active-mark/478/2
+// From https://discuss.prosemirror.net/t/expanding-the-selection-to-the-active-mark/
 
 const findMarkPosition = (state, initialPos, markType) => {
   const $pos = state.tr.doc.resolve(initialPos);
-- 
GitLab