Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codemirror/view

Package Overview
Dependencies
Maintainers
2
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/view - npm Package Versions

1
20

0.19.1

Diff

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.

marijn
published 0.18.12 •

Changelog

Source

0.18.12 (2021-05-10)

Bug fixes

Work around a Mobile Safari bug where, after backspacing out the last character on a line, Enter didn't work anymore.

Work around a problem in Mobile Safari where you couldn't tap to put the cursor at the end of a line that ended in a widget.

marijn
published 0.18.11 •

Changelog

Source

0.18.11 (2021-04-30)

Bug fixes

Add an attribute to prevent the Grammarly browser extension from messing with the editor content.

Fix more issues around selection handling a Shadow DOM in Safari.

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