prosemirror-view
Advanced tools
Comparing version 1.23.4 to 1.23.5
{ | ||
"name": "prosemirror-view", | ||
"version": "1.23.4", | ||
"version": "1.23.5", | ||
"description": "ProseMirror's view component", | ||
@@ -21,3 +21,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"prosemirror-model": "^1.14.3", | ||
"prosemirror-model": "^1.16.0", | ||
"prosemirror-state": "^1.0.0", | ||
@@ -24,0 +24,0 @@ "prosemirror-transform": "^1.1.0" |
@@ -42,3 +42,3 @@ import {Fragment, DOMParser} from "prosemirror-model" | ||
to: toOffset, | ||
preserveWhitespace: $from.parent.type.spec.code ? "full" : true, | ||
preserveWhitespace: $from.parent.type.whitespace == "pre" ? "full" : true, | ||
editableContent: true, | ||
@@ -45,0 +45,0 @@ findPositions: find, |
@@ -670,3 +670,3 @@ import {DOMSerializer, Fragment, Mark} from "prosemirror-model" | ||
let rule = {node: this.node.type.name, attrs: this.node.attrs} | ||
if (this.node.type.spec.code) rule.preserveWhitespace = "full" | ||
if (this.node.type.whitespace == "pre") rule.preserveWhitespace = "full" | ||
if (this.contentDOM && !this.contentLost) rule.contentElement = this.contentDOM | ||
@@ -673,0 +673,0 @@ else rule.getContent = () => this.contentDOM ? Fragment.empty : this.node.content |
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
1598474
Updatedprosemirror-model@^1.16.0