prosemirror-view
Advanced tools
Changelog
0.20.1 (2017-04-04)
Typing in code blocks no longer replaces newlines with spaces.
Copy and paste on Internet Explorer, Edge, and mobile Safari should now behave more like it does on other browsers. Handlers are called, and the changes to the document are made by ProseMirror's code, not the browser.
Fixes a problem where triple-clicking the editor would sometimes cause the scroll position to inexplicably jump around on IE11.
Changelog
0.20.0 (2017-04-03)
The inclusiveLeft
and inclusiveRight
options to inline decorations were renamed to inclusiveStart
and inclusiveEnd
so that they also make sense in right-to-left text. The old names work with a warning until the next release.
The default styling for lists and blockquotes was removed from prosemirror.css
. (They were moved to the example-setup
module.)
Fixes reading of selection in Chrome in a shadow DOM.
Registering DOM event handlers that the editor doesn't listen to by default with the handleDOMEvents
prop should work again.
Backspacing after turning off a mark now works again in Firefox.
The new props handlePaste
and handleDrop
can be used to override drop and paste behavior.
Changelog
0.19.1 (2017-03-18)
Fixes a number of issues with characters being duplicated or disappearing when typing on mark boundaries.
Changelog
0.19.0 (2017-03-16)
endOfTextblock
no longer always returns false for horizontal motion on non-cursor selections, but checks the position of the selection head instead.
Typing after adding/removing a mark no longer briefly shows the new text with the wrong marks.
posAtCoords
is now more reliable on modern browsers by using browser APIs.
Fix a bug where the view would in some circumstances leave superfluous DOM nodes around inside marks.
You can now override the selection the editor creates for a given DOM selection with the createSelectionBetween
prop.
Changelog
0.18.0 (2017-02-24)
Decoration
objects now store their definition object under spec
, not options
. The old property name still works, with a warning, until the next release.
Fix bug where calling focus
when there was a text selection would sometimes result in state.selection
receiving an incorrect value.
EditorView.props
now has its state
property updated when you call updateState
.
Putting decorations on or inside a node view with an update
method now works.
Plugin view update methods are now passed the view's previous state as second argument.
The place
agument to the EditorView
constructor can now be an object with a mount
property to directly provide the node that should be made editable.
The new EditorView.setProps
method makes it easier to update individual props.
Changelog
0.17.7 (2017-02-08)
Fixes crash in the code that maintains the scroll position when the document is empty or hidden.
Changelog
0.17.6 (2017-02-08)
Transactions that shouldn't scroll the selection into view now no longer do so.
Changelog
0.17.4 (2017-02-02)
Fixes bug where widget decorations would sometimes get parsed as content when editing near them.
The editor now prevents the behavior of Ctrl-d and Ctrl-h on textblock boundaries on OS X, as intended.
Make sure long words don't cause a horizontal scrollbar in Firefox
Various behavior fixes for IE11.