@codemirror/state
Advanced tools
Changelog
6.4.1 (2024-02-19)
Fix an issue that caused widgets at the end of a mark decoration to be rendered in their own separate mark DOM element.
Changelog
6.4.0 (2023-12-28)
When multiple ranges in a single range set overlap, put the smaller ones inside the bigger ones, so that overlapping decorations don't break up each other's elements when coming from the same source.
Selection and selection range eq
methods now support an optional argument that makes them also compare by cursor associativity.
The RangeSet.join
function can be used to join multiple range sets together.
Changelog
6.3.3 (2023-12-06)
Fix an issue where Text.slice
and Text.replace
could return objects with incorrect length
when the given from
/to
values were out of range for the text.
Changelog
6.3.2 (2023-11-27)
Make sure transactions cannot add multiple selections when allowMultipleSelections
is false.
Fix a bug that caused Text.iterLines
to not return empty lines at the end of the iterated ranges.
Changelog
6.3.1 (2023-10-18)
Give the tag property on FacetReader
the type of the output type parameter to force TypeScript to infer the proper type when converting from Facet
to FacetReader
.
Changelog
6.3.0 (2023-10-12)
The new FacetReader
type provides a way to export a read-only handle to a Facet
.
Changelog
6.2.1 (2023-05-23)
Fix an issue that could cause RangeSet.compare
to miss changes in the set of active ranges around a point range.
Changelog
6.2.0 (2022-12-26)
EditorSelection.range
now accepts an optional 4th argument to specify the bidi level of the range's head position.
Changelog
6.1.4 (2022-11-15)
Fix a bug that caused the openStart
value passed to span iterators to be incorrect around widgets in some circumstances.