Skip to content
Snippets Groups Projects
Commit 87b2cb93 authored by chris's avatar chris
Browse files

rest of selections

parent a77b1605
No related branches found
No related tags found
1 merge request!174Theme
...@@ -12,7 +12,15 @@ export default css` ...@@ -12,7 +12,15 @@ export default css`
color: ${th('colorText')}; color: ${th('colorText')};
p::selection, 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; background-color: transparent;
} }
......
...@@ -96,7 +96,7 @@ const findAllMarksWithSameId = (state, mark) => { ...@@ -96,7 +96,7 @@ const findAllMarksWithSameId = (state, mark) => {
return allMarksWithSameId; 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 findMarkPosition = (state, initialPos, markType) => {
const $pos = state.tr.doc.resolve(initialPos); const $pos = state.tr.doc.resolve(initialPos);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment