prosemirror-model
Advanced tools
Comparing version 1.4.4 to 1.5.0
@@ -0,1 +1,7 @@ | ||
## 1.5.0 (2018-05-31) | ||
### New features | ||
[`ParseRule.getContent`](https://prosemirror.net/docs/ref/#model.ParseRule.getContent) is now passed the parser schema as second argument. | ||
## 1.4.4 (2018-05-03) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-model", | ||
"version": "1.4.4", | ||
"version": "1.5.0", | ||
"description": "ProseMirror's document model", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -124,3 +124,3 @@ import {Fragment} from "./fragment" | ||
// | ||
// getContent:: ?(dom.Node) → Fragment | ||
// getContent:: ?(dom.Node, schema: Schema) → Fragment | ||
// Can be used to override the content of a matched node. When | ||
@@ -462,3 +462,3 @@ // present, instead of parsing the node's child nodes, the result of | ||
this.findInside(dom) | ||
rule.getContent(dom).forEach(node => this.insertNode(node)) | ||
rule.getContent(dom, this.parser.schema).forEach(node => this.insertNode(node)) | ||
} else { | ||
@@ -465,0 +465,0 @@ let contentDOM = rule.contentElement |
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
490248