prosemirror-utils
Advanced tools
Comparing version 0.9.2 to 0.9.3
{ | ||
"name": "prosemirror-utils", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"description": "Utils library for ProseMirror", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -825,3 +825,3 @@ # Utils library for ProseMirror | ||
* **`replaceSelectedNode`**`(node: ProseMirrorNode) → fn(tr: Transaction) → Transaction`\ | ||
* **`replaceSelectedNode`**`(content: ProseMirrorNode | ProseMirrorFragment) → fn(tr: Transaction) → Transaction`\ | ||
Returns a new transaction that replaces selected node with a given `node`, keeping NodeSelection on the new `node`. | ||
@@ -828,0 +828,0 @@ It will return the original transaction if either current selection is not a NodeSelection or replacing is not possible. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
238980
2154