prosemirror-model
Advanced tools
Comparing version 1.14.1 to 1.14.2
@@ -0,1 +1,7 @@ | ||
## 1.14.2 (2021-06-16) | ||
### Bug fixes | ||
Be less agressive about dropping whitespace when the context isn't know in `DOMParser.parseSlice`. | ||
## 1.14.1 (2021-04-26) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-model", | ||
"version": "1.14.1", | ||
"version": "1.14.2", | ||
"description": "ProseMirror's document model", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -365,2 +365,8 @@ import {Fragment} from "./fragment" | ||
} | ||
inlineContext(node) { | ||
if (this.type) return this.type.inlineContent | ||
if (this.content.length) return this.content[0].isInline | ||
return node.parentNode && !blockTags.hasOwnProperty(node.parentNode.nodeName.toLowerCase()) | ||
} | ||
} | ||
@@ -416,3 +422,3 @@ | ||
if (top.options & OPT_PRESERVE_WS_FULL || | ||
(top.type ? top.type.inlineContent : top.content.length && top.content[0].isInline) || | ||
top.inlineContext(dom) || | ||
/[^ \t\r\n\u000c]/.test(value)) { | ||
@@ -419,0 +425,0 @@ if (!(top.options & OPT_PRESERVE_WS)) { |
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
900061
9246