prosemirror-view
Advanced tools
Comparing version 1.23.5 to 1.23.6
{ | ||
"name": "prosemirror-view", | ||
"version": "1.23.5", | ||
"version": "1.23.6", | ||
"description": "ProseMirror's view component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -45,3 +45,6 @@ import {TextSelection, NodeSelection} from "prosemirror-state" | ||
if (!force && view.mouseDown && view.mouseDown.allowDefault) { | ||
// The delayed drag selection causes issues with Cell Selections | ||
// in Safari. And the drag selection delay is to workarond issues | ||
// which only present in Chrome. | ||
if (!force && view.mouseDown && view.mouseDown.allowDefault && browser.chrome) { | ||
let domSel = view.root.getSelection(), curSel = view.domObserver.currentSelection | ||
@@ -48,0 +51,0 @@ if (domSel.anchorNode && isEquivalentPosition(domSel.anchorNode, domSel.anchorOffset, |
@@ -465,3 +465,4 @@ import {DOMSerializer, Fragment, Mark} from "prosemirror-model" | ||
} else { | ||
child.dirty = child.dom == child.contentDOM && child.dom.parentNode == this.contentDOM ? CONTENT_DIRTY : NODE_DIRTY | ||
child.dirty = child.dom == child.contentDOM && child.dom.parentNode == this.contentDOM && !child.children.length | ||
? CONTENT_DIRTY : NODE_DIRTY | ||
} | ||
@@ -581,3 +582,6 @@ } | ||
parseRule() { return {mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM} } | ||
parseRule() { | ||
if ((this.dirty & NODE_DIRTY) || this.mark.type.spec.reparseInView) return null | ||
return {mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM} | ||
} | ||
@@ -584,0 +588,0 @@ matchesMark(mark) { return this.dirty != NODE_DIRTY && this.mark.eq(mark) } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1600856
14883