Socket
Socket
Sign inDemoInstall

@codemirror/view

Package Overview
Dependencies
Maintainers
2
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/view - npm Package Versions

1
19

0.19.3

Diff

Changelog

Source

0.19.3 (2021-08-25)

Bug fixes

Fix a view corruption that could happen in situations involving overlapping mark decorations.

marijn
published 0.19.2 •

Changelog

Source

0.19.2 (2021-08-23)

New features

The package now exports a scrollPastEnd function, which returns an extension that adds space below the document to allow the last line to be scrolled to the top of the editor.

marijn
published 0.19.1 •

Changelog

Source

0.19.1 (2021-08-11)

Breaking changes

The view now emits new-style user event annotations for the transactions it generates.

Bug fixes

Fix a bug where coordsAtPos would allow the passed side argument to override widget sides, producing incorrect cursor positions.

Fix a bug that could cause content lines to be misaligned in certain situations involving widgets at the end of lines.

Fix an issue where, if the browser decided to modify DOM attributes in the content in response to some editing action, the view failed to reset those again.

marijn
published 0.18.19 •

Changelog

Source

0.18.19 (2021-07-12)

Bug fixes

Fix a regression where EditorView.editable.of(false) didn't disable editing on Webkit-based browsers.

marijn
published 0.18.18 •

Changelog

Source

0.18.18 (2021-07-06)

Bug fixes

Fix a bug that caused EditorView.moveVertically to only move by one line, even when given a custom distance, in some cases.

Hide Safari's native bold/italic/underline controls for the content.

Fix a CSS problem that prevented Safari from breaking words longer than the line in line-wrapping mode.

Avoid a problem where composition would be inappropriately abored on Safari.

Fix drag-selection that scrolls the content by dragging past the visible viewport.

New features

posAtCoords now has an imprecise mode where it'll return an approximate position even for parts of the document that aren't currently rendered.

marijn
published 0.18.17 •

Changelog

Source

0.18.17 (2021-06-14)

Bug fixes

Make drawSelection behave properly when lines are split by block widgets.

Make sure drawn selections that span a single line break don't leave a gap between the lines.

marijn
published 0.18.16 •

Changelog

Source

0.18.16 (2021-06-03)

Bug fixes

Fix a crash that could occur when the document changed during mouse selection.

Fix a bug where composition inside styled content would sometimes be inappropriately aborted by editor DOM updates.

New features

MouseSelectionStyle.update may now return true to indicate it should be queried for a new selection after the update.

marijn
published 0.18.15 •

Changelog

Source

0.18.15 (2021-06-01)

Bug fixes

Fix a bug that would, in very specific circumstances, cause posAtCoords to go into an infinite loop in Safari.

Fix a bug where some types of IME input on Mobile Safari would drop text.

marijn
published 0.18.14 •

Changelog

Source

0.18.14 (2021-05-28)

Bug fixes

Fix an issue where the DOM selection was sometimes not properly updated when next to a widget.

Invert the order in which overlapping decorations are drawn so that higher-precedence decorations are nested inside lower-precedence ones (and thus override their styling).

Fix a but in posAtCoords where it would in some situations return -1 instead of null.

New features

A new plugin field, PluginField.atomicRanges, can be used to cause cursor motion to skip past some ranges of the document.

marijn
published 0.18.13 •

Changelog

Source

0.18.13 (2021-05-20)

Bug fixes

Fix a bug that would cause the content DOM update to crash in specific circumstances.

Work around an issue where, after some types of changes, Mobile Safari would ignore Enter presses.

Make iOS enter and backspace handling more robust, so that platform bugs are less likely to break those keys in the editor.

Fix a regression where Esc + Tab no longer allowed the user to exit the editor.

New features

You can now drop text files into the editor.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc