Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--css/style.scss6
-rw-r--r--src/EditorFactory.js4
-rw-r--r--src/nodes/ListItem.js2
3 files changed, 7 insertions, 5 deletions
diff --git a/css/style.scss b/css/style.scss
index b5923a2ca..ba720d3eb 100644
--- a/css/style.scss
+++ b/css/style.scss
@@ -2,9 +2,9 @@
position: absolute;
}
-.ProseMirror-hideselection *::selection { background: transparent; }
-.ProseMirror-hideselection *::-moz-selection { background: transparent; }
-.ProseMirror-hideselection { caret-color: transparent; }
+.ProseMirror-hideselection *::selection { background: transparent; color: var(--color-main-text); }
+.ProseMirror-hideselection *::-moz-selection { background: transparent; color: var(--color-main-text); }
+.ProseMirror-hideselection { caret-color: transparent; color: var(--color-main-text); }
.ProseMirror-selectednode {
outline: 2px solid #8cf;
diff --git a/src/EditorFactory.js b/src/EditorFactory.js
index de0b03e8b..3a743f2b9 100644
--- a/src/EditorFactory.js
+++ b/src/EditorFactory.js
@@ -75,7 +75,9 @@ const createEditor = ({ content, onInit, onUpdate, extensions, enableRichEditing
new Blockquote(),
new CodeBlock(),
new ListItem(),
- new Link(),
+ new Link({
+ openOnClick: true
+ }),
new Image(),
new Placeholder({
emptyNodeClass: 'is-empty',
diff --git a/src/nodes/ListItem.js b/src/nodes/ListItem.js
index 08b5d0c9d..e851bc06f 100644
--- a/src/nodes/ListItem.js
+++ b/src/nodes/ListItem.js
@@ -154,7 +154,7 @@ export default class ListItem extends TiptapListItem {
})
const isListClicked = event.target.tagName.toLowerCase() === 'li'
if (typeof parentList === 'undefined' || parentList.node.attrs.type !== TYPES.CHECKBOX || !isListClicked) {
- return true
+ return
}
const tr = state.tr