colel
November 11, 2021, 2:38pm
1
Just a heads up, it appears that the latest code of prosemirror-dropcursor
which is supposed to use disableDropCursor
from nodespec, is not released.
For example:
https://unpkg.com/browse/prosemirror-dropcursor@1.3.5/dist/index.es.js
Versus:
// Nodes may add a `disableDropCursor` property to their spec to
// control the showing of a drop cursor inside them. This may be a
// boolean or a function, which will be called with a view and a
// position, and should return a boolean.
//
// options::- These options are supported:
//
// color:: ?string
// The color of the cursor. Defaults to `black`.
//
// width:: ?number
// The precise width of the cursor in pixels. Defaults to 1.
//
// class:: ?string
// A CSS class name to add to the cursor element.
Cheers!
colel
November 11, 2021, 2:48pm
2
I started pulling this into my project, and started converting to TypeScript, and it does appear this code is not actually working yet. ~I found the following type errors:~
~Where pageXOffset
& pageYOffset
are not defined.~
edit: My bad, these are just window/globalThis properties
marijn
November 11, 2021, 2:58pm
3
Indeed, that was an oversight. I’ve released 1.4.0
1 Like