Include CommonJS type declarations in the package to please new TypeScript resolution settings.
If the color
option is set to false
, the library will not assign an explicit color to the cursor.
Don't hide the drop cursor when no valid drop point can be found below the pointer.
The drop cursor element now has a prosemirror-blockcursor-block
/inline
CSS class depending on whether it is in a block or inline position.
Fix a crash when there's no DOM for the node next to the drag position.
disableDropCursor
is now passed the dragover event as 3rd argument.
Include TypeScript type declarations.
Add support for a disableDropCursor
property on node specs, which can be used to turn off the drop cursor inside such nodes.
Avoid a crash that happened when the document shrank during dragging.
Hide the drop cursor when dropPoint
doesn't return a position.
Fix drop cursor positioning when the editor's offsetParent
has been scrolled.
Rename ES module files to use a .js extension, since Webpack gets confused by .mjs
The file referred to in the package's module
field now is compiled down to ES5.
Add a module
field to package json file.
dropCursor
now takes a new option, class
, to set the CSS class name of the cursor element. Add class option to in-code docs
Fix crash on IE11 due to using a method that platform doesn't support. Don't show a drop cursor when the view isn't editable
The drop cursor will no longer show up when the view isn't editable.
Fix crash when destroying the plugin, due to a misspelled method name.
Fixes an issue where drop cursors changed line breaking, causing the content to jump around during dragging.
Between-blocks drop cursors are now shown as a horizontal line.
Dragging from a content node directly to the outside of the editor will now properly hide the drop cursor.
Make removal of drop cursor part of the drop transaction when possible.
Use dropPoint
from prosemirror-transform, rather than a local parallel implementation.
First stable release.