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

prosemirror-view

Package Overview
Dependencies
Maintainers
1
Versions
284
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-view - npm Package Versions

1
29

1.3.4

Diff

Changelog

Source

1.3.4 (2018-06-20)

Bug fixes

Enable use of browser clipboard API on Mobile Safari version 11 and up, which makes cut work on that platform and should generally improve clipboard handling.

marijn
published 1.3.3 •

Changelog

Source

1.3.3 (2018-06-15)

Bug fixes

Fix arrow-left cursor motion from cursor wrapper (for example after a link).

Fix selection glitches when shift-selecting around widget decorations.

Fix issue where a parsing a code block from the editor DOM might drop newlines in the code.

marijn
published 1.3.2 •

Changelog

Source

1.3.2 (2018-06-15)

Bug fixes

handleKeyDown will now get notified of key events happening directly after a composition ends.

marijn
published 1.3.1 •

Changelog

Source

1.3.1 (2018-06-08)

Bug fixes

The package can now be loaded in a web worker context (where navigator is defined but document isn't) without crashing.

Dropping something like a list item into a textblock will no longer split the textblock.

marijn
published 1.3.0 •

Changelog

Source

1.3.0 (2018-04-24)

Bug fixes

Fix mouse-selecting (in IE and Edge) from the end of links and other positions that cause a cursor wrapper.

Widget decorations with the same key are now considered equivalent, even if their other spec fields differ.

New features

The new EditorView.posAtDOM method can be used to find the document position corresponding to a given DOM position.

The new EditorView.nodeDOM method gives you the DOM node that is used to represent a specific node in the document.

Decoration.widget now accepts a function as second argument, which can be used to delay rendering of the widget until the document is drawn (at which point a reference to the view is available).

The getPos function passed to a node view constructor can now be called immediately (it used to return undefined until rendering had finished).

The function used to render a widget is now passed a getPos method that event handlers can use to figure out where in the DOM the widget is.

marijn
published 1.2.0 •

Changelog

Source

1.2.0 (2018-03-14)

Bug fixes

Fix a problem where updating the state of a non-editable view would not set the selection, causing problems when the DOM was updated in a way that disrupted the DOM selection.

Fix an issue where, on IE and Chrome, starting a drag selection in a position that required a cursor wrapper (on a mark boundary) would sometimes fail to work.

Fix crash in key handling when the editor is focused but there is no DOM selection.

Fixes a bug that prevented decorations inside node views with a contentDOM property from being drawn.

Fixes an issue where, on Firefox, depending on a race condition, the skipping over insignificant DOM nodes done at keypress was canceled again before the keypress took effect.

Fixes an issue where an :after pseudo-element on a non-inclusive mark could block the cursor, making it impossible to arrow past it.

New features

The DOM structure for marks is no longer constrained to a single node. Mark views can have a contentDOM property, and mark spec toDOM methods can return structures with holes.

Widget decorations are now wrapped in the marks of the node after them when their side option is >= 0.

Widget decorations may now specify a marks option to set the precise set of marks they should be wrapped in.

marijn
published 1.1.1 •

Changelog

Source

1.1.1 (2018-03-01)

Bug fixes

Fixes typo that broke paste.

marijn
published 1.1.0 •

Changelog

Source

1.1.0 (2018-02-28)

Bug fixes

Fixes issue where dragging a draggable node directly below a selected node would move the old selection rather than the target node.

A drop that can't fit the dropped content will no longer dispatch an empty transaction.

New features

Transactions generated for drop now have a "uiEvent" metadata field holding "drop". Paste and cut transactions get that field set to "paste" or "cut".

marijn
published 1.0.11 •

Changelog

Source

1.0.11 (2018-02-16)

Bug fixes

Fix issue where the cursor was visible when a node was selected on recent Chrome versions.

marijn
published 1.0.10 •

Changelog

Source

1.0.10 (2018-01-24)

Bug fixes

Improve preservation of open and closed nodes in slices taken from the clipboard.

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