prosemirror-model
Advanced tools
Comparing version 1.14.2 to 1.14.3
@@ -0,1 +1,7 @@ | ||
## 1.14.3 (2021-07-22) | ||
### Bug fixes | ||
`DOMSerializer.serializeNode` will no longer ignore the node's marks. | ||
## 1.14.2 (2021-06-16) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-model", | ||
"version": "1.14.2", | ||
"version": "1.14.3", | ||
"description": "ProseMirror's document model", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -72,3 +72,3 @@ // DOMOutputSpec:: interface | ||
} | ||
top.appendChild(this.serializeNode(node, options)) | ||
top.appendChild(this.serializeNodeInner(node, options)) | ||
}) | ||
@@ -79,9 +79,3 @@ | ||
// :: (Node, ?Object) → dom.Node | ||
// Serialize this node to a DOM node. This can be useful when you | ||
// need to serialize a part of a document, as opposed to the whole | ||
// document. To serialize a whole document, use | ||
// [`serializeFragment`](#model.DOMSerializer.serializeFragment) on | ||
// its [content](#model.Node.content). | ||
serializeNode(node, options = {}) { | ||
serializeNodeInner(node, options = {}) { | ||
let {dom, contentDOM} = | ||
@@ -100,4 +94,10 @@ DOMSerializer.renderSpec(doc(options), this.nodes[node.type.name](node)) | ||
serializeNodeAndMarks(node, options = {}) { | ||
let dom = this.serializeNode(node, options) | ||
// :: (Node, ?Object) → dom.Node | ||
// Serialize this node to a DOM node. This can be useful when you | ||
// need to serialize a part of a document, as opposed to the whole | ||
// document. To serialize a whole document, use | ||
// [`serializeFragment`](#model.DOMSerializer.serializeFragment) on | ||
// its [content](#model.Node.content). | ||
serializeNode(node, options = {}) { | ||
let dom = this.serializeNodeInner(node, options) | ||
for (let i = node.marks.length - 1; i >= 0; i--) { | ||
@@ -104,0 +104,0 @@ let wrap = this.serializeMark(node.marks[i], node.isInline, options) |
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
900208