@tiptap/core 3.0.0-beta.12 → 3.0.0-beta.14
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.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/NodePos.ts +6 -0
package/dist/index.cjs
CHANGED
|
@@ -4200,6 +4200,9 @@ var NodePos = class _NodePos {
|
|
|
4200
4200
|
const isBlock = node.isBlock && !node.isTextblock;
|
|
4201
4201
|
const isNonTextAtom = node.isAtom && !node.isText;
|
|
4202
4202
|
const targetPos = this.pos + offset + (isNonTextAtom ? 0 : 1);
|
|
4203
|
+
if (targetPos < 0 || targetPos > this.resolvedPos.doc.nodeSize - 2) {
|
|
4204
|
+
return;
|
|
4205
|
+
}
|
|
4203
4206
|
const $pos = this.resolvedPos.doc.resolve(targetPos);
|
|
4204
4207
|
if (!isBlock && $pos.depth <= this.depth) {
|
|
4205
4208
|
return;
|