prosemirror-transform 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -913,7 +913,7 @@ function dropPoint(doc, pos, slice) {
913
913
  fits = parent.canReplace(insertPos, insertPos, content);
914
914
  } else {
915
915
  var wrapping = parent.contentMatchAt(insertPos).findWrapping(content.firstChild.type);
916
- fits = wrapping && parent.canReplaceWith(insertPos, insertPos, wrapping[0].type);
916
+ fits = wrapping && parent.canReplaceWith(insertPos, insertPos, wrapping[0]);
917
917
  }
918
918
  if (fits)
919
919
  { return bias == 0 ? $pos.pos : bias < 0 ? $pos.before(d + 1) : $pos.after(d + 1) }