@tiptap/core
Advanced tools
+3
-3
| { | ||
| "name": "@tiptap/core", | ||
| "description": "headless rich text editor", | ||
| "version": "3.17.0", | ||
| "version": "3.17.1", | ||
| "homepage": "https://tiptap.dev", | ||
@@ -55,6 +55,6 @@ "keywords": [ | ||
| "devDependencies": { | ||
| "@tiptap/pm": "^3.17.0" | ||
| "@tiptap/pm": "^3.17.1" | ||
| }, | ||
| "peerDependencies": { | ||
| "@tiptap/pm": "^3.17.0" | ||
| "@tiptap/pm": "^3.17.1" | ||
| }, | ||
@@ -61,0 +61,0 @@ "repository": { |
@@ -464,4 +464,4 @@ import type { Node as PMNode } from '@tiptap/pm/model' | ||
| get contentDOM() { | ||
| return this.contentElement | ||
| get contentDOM(): HTMLElement | null { | ||
| return this.contentElement ?? null | ||
| } | ||
@@ -468,0 +468,0 @@ |
+8
-3
@@ -137,2 +137,3 @@ import type { Fragment, Node, ResolvedPos } from '@tiptap/pm/model' | ||
| const isNonTextAtom = node.isAtom && !node.isText | ||
| const isInline = node.isInline | ||
@@ -148,7 +149,11 @@ const targetPos = this.pos + offset + (isNonTextAtom ? 0 : 1) | ||
| if (!isBlock && $pos.depth <= this.depth) { | ||
| // Only apply depth check for non-block, non-inline nodes (i.e., textblocks) | ||
| // Inline nodes should always be included as children since we're iterating | ||
| // over direct children via this.node.content | ||
| if (!isBlock && !isInline && $pos.depth <= this.depth) { | ||
| return | ||
| } | ||
| const childNodePos = new NodePos($pos, this.editor, isBlock, isBlock ? node : null) | ||
| // Pass the node for both block and inline nodes to ensure correct node reference | ||
| const childNodePos = new NodePos($pos, this.editor, isBlock, isBlock || isInline ? node : null) | ||
@@ -159,3 +164,3 @@ if (isBlock) { | ||
| children.push(new NodePos($pos, this.editor, isBlock, isBlock ? node : null)) | ||
| children.push(childNodePos) | ||
| }) | ||
@@ -162,0 +167,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2255593
0.05%30114
0.03%