@tiptap/core
Advanced tools
Comparing version 2.1.0-rc.10 to 2.1.0-rc.11
{ | ||
"name": "@tiptap/core", | ||
"description": "headless rich text editor", | ||
"version": "2.1.0-rc.10", | ||
"version": "2.1.0-rc.11", | ||
"homepage": "https://tiptap.dev", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@tiptap/pm": "^2.1.0-rc.10" | ||
"@tiptap/pm": "^2.1.0-rc.11" | ||
}, | ||
@@ -38,0 +38,0 @@ "peerDependencies": { |
@@ -22,5 +22,7 @@ import { RawCommands } from '../types.js' | ||
.deleteRange(originRange) | ||
.insertContentAt(targetPos, contentSlice.content.toJSON()) | ||
.command(({ commands, tr }) => { | ||
return commands.insertContentAt(tr.mapping.map(targetPos), contentSlice.content.toJSON()) | ||
}) | ||
.focus() | ||
.run() | ||
} |
@@ -49,3 +49,3 @@ import { Fragment, Node as ProseMirrorNode, ParseOptions } from '@tiptap/pm/model' | ||
let { from, to } = typeof position === 'number' ? { from: tr.mapping.map(position), to: tr.mapping.map(position) } : { from: tr.mapping.map(position.from), to: tr.mapping.map(position.to) } | ||
let { from, to } = typeof position === 'number' ? { from: position, to: position } : { from: position.from, to: position.to } | ||
@@ -52,0 +52,0 @@ let isOnlyTextContent = true |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1924059
22617