@tiptap/extension-list-keymap
Advanced tools
Comparing version 2.9.1 to 2.10.0
@@ -77,2 +77,7 @@ import { getNodeType, getNodeAtPosition, isNodeActive, isAtStartOfNode, isAtEndOfNode, Extension } from '@tiptap/core'; | ||
} | ||
// if the selection is not collapsed | ||
// we can rely on the default backspace behavior | ||
if (editor.state.selection.from !== editor.state.selection.to) { | ||
return false; | ||
} | ||
// if the current item is NOT inside a list item & | ||
@@ -79,0 +84,0 @@ // the previous item is a list (orderedList or bulletList) |
@@ -81,2 +81,7 @@ (function (global, factory) { | ||
} | ||
// if the selection is not collapsed | ||
// we can rely on the default backspace behavior | ||
if (editor.state.selection.from !== editor.state.selection.to) { | ||
return false; | ||
} | ||
// if the current item is NOT inside a list item & | ||
@@ -83,0 +88,0 @@ // the previous item is a list (orderedList or bulletList) |
{ | ||
"name": "@tiptap/extension-list-keymap", | ||
"description": "list keymap extension for tiptap", | ||
"version": "2.9.1", | ||
"version": "2.10.0", | ||
"homepage": "https://tiptap.dev", | ||
@@ -32,3 +32,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@tiptap/core": "^2.9.1" | ||
"@tiptap/core": "^2.10.0" | ||
}, | ||
@@ -35,0 +35,0 @@ "peerDependencies": { |
@@ -15,2 +15,8 @@ import { Editor, isAtStartOfNode, isNodeActive } from '@tiptap/core' | ||
// if the selection is not collapsed | ||
// we can rely on the default backspace behavior | ||
if (editor.state.selection.from !== editor.state.selection.to) { | ||
return false | ||
} | ||
// if the current item is NOT inside a list item & | ||
@@ -17,0 +23,0 @@ // the previous item is a list (orderedList or bulletList) |
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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1198
107521