@tiptap/core
Advanced tools
Comparing version 2.0.0-beta.42 to 2.0.0-beta.43
@@ -6,2 +6,10 @@ # Change Log | ||
# [2.0.0-beta.43](https://github.com/ueberdosis/tiptap/compare/@tiptap/core@2.0.0-beta.42...@tiptap/core@2.0.0-beta.43) (2021-05-05) | ||
**Note:** Version bump only for package @tiptap/core | ||
# [2.0.0-beta.42](https://github.com/ueberdosis/tiptap/compare/@tiptap/core@2.0.0-beta.41...@tiptap/core@2.0.0-beta.42) (2021-05-04) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@tiptap/core", | ||
"description": "headless rich text editor", | ||
"version": "2.0.0-beta.42", | ||
"version": "2.0.0-beta.43", | ||
"homepage": "https://tiptap.dev", | ||
@@ -44,3 +44,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "e0895bd919bb30cead6f06883da777ed962d9c0c" | ||
"gitHead": "d955c9372a84c7c281ba255e19fdcb86ab51416c" | ||
} |
@@ -19,11 +19,11 @@ import { NodeType } from 'prosemirror-model' | ||
const { from, to } = range | ||
const $from = tr.doc.resolve(from) | ||
const index = $from.index() | ||
// const $from = tr.doc.resolve(from) | ||
// const index = $from.index() | ||
if (!$from.parent.canReplaceWith(index, index, type)) { | ||
return false | ||
} | ||
// if (!$from.parent.canReplaceWith(index, index, type)) { | ||
// return false | ||
// } | ||
if (dispatch) { | ||
tr.replaceWith(from, to, type.create(attributes)) | ||
tr.replaceRangeWith(from, to, type.create(attributes)) | ||
} | ||
@@ -30,0 +30,0 @@ |
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
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
2544948