prosemirror-utils
Advanced tools
Comparing version 0.2.18 to 0.2.19
@@ -257,3 +257,4 @@ 'use strict'; | ||
tr = tr.replaceWith(before, before + node.nodeSize, content); | ||
return cloneTr(setTextSelection(tr.selection.$from.pos - 1, -1)(tr)); | ||
var start = tr.selection.$from.pos - 1; | ||
return cloneTr(setTextSelection(Math.max(start, 0), -1)(tr)); | ||
} | ||
@@ -260,0 +261,0 @@ return tr; |
{ | ||
"name": "prosemirror-utils", | ||
"version": "0.2.18", | ||
"version": "0.2.19", | ||
"description": "Utils library for ProseMirror", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
114125
1059