@remirror/core-extensions
Advanced tools
Comparing version 0.11.1 to 0.13.1
# @remirror/core-extensions | ||
## 0.13.1 | ||
### Patch Changes | ||
- 4dbb7461: Prevent the link selection from selecting word on click if there is already a selection. Fixes | ||
#278. | ||
## 0.11.1 | ||
@@ -4,0 +11,0 @@ |
@@ -37,4 +37,4 @@ 'use strict'; | ||
dispatch = _ref.dispatch; | ||
// Expand selection | ||
var range = core.getSelectedWord(state); | ||
// if the selection is empty, expand it | ||
var range = state.selection.empty ? core.getSelectedWord(state) : state.selection; | ||
@@ -41,0 +41,0 @@ if (!range) { |
{ | ||
"name": "@remirror/core-extensions", | ||
"version": "0.11.1", | ||
"version": "0.13.1", | ||
"description": "Provides the core extensions for your remirror editor", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/remirror/remirror/tree/master/@remirror/core-extensions", |
@@ -78,4 +78,5 @@ import { Plugin, TextSelection } from 'prosemirror-state'; | ||
'Mod-k': ({ state, dispatch }) => { | ||
// Expand selection | ||
const range = getSelectedWord(state); | ||
// if the selection is empty, expand it | ||
const range = state.selection.empty ? getSelectedWord(state) : state.selection; | ||
if (!range) { | ||
@@ -82,0 +83,0 @@ return false; |
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 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
865176