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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prosemirror-transform",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "ProseMirror document transformations",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
package/src/structure.js CHANGED
@@ -281,7 +281,7 @@ export function dropPoint(doc, pos, slice) {
281
281
  fits = parent.canReplace(insertPos, insertPos, content)
282
282
  } else {
283
283
  let wrapping = parent.contentMatchAt(insertPos).findWrapping(content.firstChild.type)
284
- fits = wrapping && parent.canReplaceWith(insertPos, insertPos, wrapping[0].type)
284
+ fits = wrapping && parent.canReplaceWith(insertPos, insertPos, wrapping[0])
285
285
  }
286
286
  if (fits)
287
287
  return bias == 0 ? $pos.pos : bias < 0 ? $pos.before(d + 1) : $pos.after(d + 1)