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/CHANGELOG.md +6 -0
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/structure.js +1 -1
package/package.json
CHANGED
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]
|
|
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)
|