Socket
Socket
Sign inDemoInstall

@codemirror/view

Package Overview
Dependencies
3
Maintainers
2
Versions
177
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
35
18Next

6.18.1

Diff

Changelog

Source

6.18.1 (2023-09-11)

Bug fixes

Fix an issue where the editor duplicated text when the browser moved content into the focused text node on composition.

Make sure widgetMarker is called for gutters on lines covered by a block replace decoration.

Fix an issue where the cursor could be shown in a position that doesn't allow a cursor when the selection is in a block widget.

marijn
published 6.18.0 •

Changelog

Source

6.18.0 (2023-09-05)

New features

The new EditorView.scaleX and scaleY properties return the CSS-transformed scale of the editor (or 1 when not scaled).

The editor now supports being scaled with CSS.

marijn
published 6.17.1 •

Changelog

Source

6.17.1 (2023-08-31)

Bug fixes

Don't close the hover tooltip when the pointer moves over empty space caused by line breaks within the hovered range.

Fix a bug where on Chrome Android, if a virtual keyboard was slow to apply a change, the editor could end up dropping it.

Work around an issue where line-wise copy/cut didn't work in Firefox because the browser wasn't firing those events when nothing was selected.

Fix a crash triggered by the way some Android IME systems update the DOM.

Fix a bug that caused replacing a word by an emoji on Chrome Android to be treated as a backspace press.

marijn
published 6.17.0 •

Changelog

Source

6.17.0 (2023-08-28)

Bug fixes

Fix a bug that broke hover tooltips when hovering over a widget.

New features

The new EditorView.cspNonce facet can be used to provide a Content Security Policy nonce for the library's generated CSS.

The new EditorView.bidiIsolatedRanges can be used to inform the editor about ranges styled as Unicode bidirection isolates, so that it can compute the character order correctly.

EditorView.dispatch now also accepts an array of transactions to be applied together in a single view update.

The new dispatchTransactions option to new EditorView now replaces the old (deprecated but still supported) dispatch option in a way that allows multiple transactions to be applied in one update.

Input handlers are now passed an additional argument that they can use to retrieve the default transaction that would be applied for the insertion.

marijn
published 6.16.0 •

Changelog

Source

6.16.0 (2023-07-31)

Bug fixes

Fix an issue that made the gutter not stick in place when the editor was in a right-to-left context.

New features

The new EditorView.coordsForChar method returns the client rectangle for a given character in the editor.

marijn
published 6.15.3 •

Changelog

Source

6.15.3 (2023-07-18)

Bug fixes

Fix another crash regression for compositions before line breaks.

marijn
published 6.15.2 •

Changelog

Source

6.15.2 (2023-07-18)

Bug fixes

Fix the check that made sure compositions are dropped when the selection is moved.

marijn
published 6.15.1 •

Changelog

Source

6.15.1 (2023-07-18)

Bug fixes

Fix a regression that could cause the composition content to be drawn incorrectly.

marijn
published 6.15.0 •

Changelog

Source

6.15.0 (2023-07-17)

Bug fixes

Fix dragging a selection from inside the current selection on macOS.

Fix an issue that could cause the scroll position to jump wildly

Don't try to scroll fixed-positioned elements into view by scrolling their parent elements.

Fix a bug that caused the cursor to be hidden when showing a placeholder that consisted of the empty string.

Resolve some issues where composition could incorrectly affect nearby replaced content.

New features

Key bindings can now set a stopPropagation field to cause the view to stop the key event propagation when it considers the event handled.

marijn
published 6.14.1 •

Changelog

Source

6.14.1 (2023-07-06)

Bug fixes

Fix an issue where scrolling up through line-wrapped text would sometimes cause the scroll position to pop down.

Fix an issue where clicking wouldn't focus the editor on Firefox when it was in an iframe and already the active element of the frame.

Fix a bug that could cause compositions to be disrupted because their surrounding DOM was repurposed for some other piece of content.

Fix a bug where adding content to the editor could inappropriately move the scroll position.

Extend detection of Enter presses on Android to beforeInput events with an "insertLineBreak" type.

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc