@codemirror/state
Advanced tools
Comparing version 0.18.5 to 0.18.6
@@ -0,1 +1,7 @@ | ||
## 0.18.6 (2021-04-12) | ||
### New features | ||
The new `EditorState.wordAt` method finds the word at a given position. | ||
## 0.18.5 (2021-04-08) | ||
@@ -2,0 +8,0 @@ |
@@ -1046,2 +1046,9 @@ import { Text } from '@codemirror/text'; | ||
/** | ||
Find the word at the given position, meaning the range | ||
containing all [word](https://codemirror.net/6/docs/ref/#state.CharCategory.Word) characters | ||
around it. If no word characters are adjacent to the position, | ||
this returns null. | ||
*/ | ||
wordAt(pos: number): SelectionRange | null; | ||
/** | ||
Facet used to register change filters, which are called for each | ||
@@ -1048,0 +1055,0 @@ transaction (unless explicitly |
{ | ||
"name": "@codemirror/state", | ||
"version": "0.18.5", | ||
"version": "0.18.6", | ||
"description": "Editor state data structures for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
209579
5463