prosemirror-view
Advanced tools
Changelog
1.3.4 (2018-06-20)
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.
Changelog
1.3.3 (2018-06-15)
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.
Changelog
1.3.2 (2018-06-15)
handleKeyDown
will now get notified of key events happening directly after a composition ends.
Changelog
1.3.1 (2018-06-08)
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.
Changelog
1.3.0 (2018-04-24)
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.
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.
Changelog
1.2.0 (2018-03-14)
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.
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.
Changelog
1.1.0 (2018-02-28)
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.
Transactions generated for drop now have a "uiEvent"
metadata field holding "drop"
. Paste and cut transactions get that field set to "paste"
or "cut"
.
Changelog
1.0.11 (2018-02-16)
Fix issue where the cursor was visible when a node was selected on recent Chrome versions.