prosemirror-view
Advanced tools
Changelog
1.0.0 (2017-10-13)
Dragging nodes with a node view that handles its own mouse events should work better now.
List item DOM nodes are no longer assigned pointer-events: none
in the default style. Ctrl-clicking list markers now properly selects the list item again.
Arrow-down through an empty textblock no longer causes the browser to forget the cursor's horizontal position.
Copy-dragging on OS X is now done by holding option, rather than control, following the convention on that system.
Fixes a crash related to decoration management.
Fixes a problem where using cut on IE11 wouldn't actually remove the selected text.
Copy/paste on Edge 15 and up now uses the clipboard API, fixing a problem that made them fail entirely.
The dragging
property of a view, which contains information about editor content being dragged, is now part of the public interface.
Changelog
0.23.0 (2017-09-13)
The onFocus
, onBlur
, and handleContextMenu
props are no longer supported. You can achieve their effect with the handleDOMEvents
prop.
Fixes occasional crash when reading the selection in Firefox.
Putting a table cell on the clipboard now properly wraps it in a table.
The view will no longer scroll into view when receiving a state that isn't derived from its previous state.
Transactions caused by a paste now have their "paste" meta property set to true.
Adds a new view prop, handleScrollToSelection
to override the behavior of scrolling the selection into view.
The new editor prop clipboardTextSerializer
allows you to override the way a piece of document is converted to clipboard text.
Adds the editor prop clipboardTextParser
, which can be used to define your own parsing strategy for clipboard text content.
DecorationSet.find
now supports passing a predicate to filter decorations by spec.
Changelog
0.22.1 (2017-08-16)
Invisible selections that don't cover any content (i.e., a cursor) are now properly hidden.
Initializing the editor view non-editable no longer causes a crash.
Changelog
0.22.0 (2017-06-29)
Fix an issue where moving the cursor through a text widget causes the editor to lose the selection in Chrome.
Fixes an issue where down-arrow in front of a widget would sometimes not cause any cursor motion on Chrome.
Destroying a mounted editor view no longer leaks event handlers.
Display updates for regular, non-composition input are now synchronous, which should reduce flickering when, for example, updating decorations in response to typing.
The editor can now be initialized in a document other than the global document (say, an iframe
).
Editor views now have a domAtPos
method, which gives you the DOM position corresponding to a given document position.
Changelog
0.21.1 (2017-05-09)
Copying and pasting table cells on Edge no longer strips the table structure.
Changelog
0.21.0 (2017-05-03)
The associative
option to widget decorations is no longer supported. To make a widget left-associative, set its side
option to a negative number. associative
will continue to work with a warning until the next release.
Widget decorations now support a side
option that controls which side of them the cursor is drawn, where they move when content is inserted at their position, and the order in which they appear relative to other widgets at the same position.
Changelog
0.20.5 (2017-05-02)
Fixes an issue where the DOM selection could be shown on the wrong side of hard break or image nodes.
Changelog
0.20.4 (2017-04-24)
Fix a bug that prevented the DOM selection from being updated when the new position was near the old one in some circumstances.
Stop interfering with alt-d keypresses on OS X.
Fix issue where reading a DOM change in a previously empty node could crash.
Fixes crash when reading a change that removed a decorated text node from the DOM.