Closed morpheus-87 closed 3 years ago
Anything new on this PR, @hubgit?
Thanks very much for the PR, and sorry for taking a while to respond to this.
If you're interested in trying v2, I've added the fix for the Floater position and it now recalculates the position on resize and scroll events.
There is an issue with the positioning of the floater menu. The problem is that ProseMirror calculates the offsets relative to the viewport, but with
position: absolute
the selected element will positioned relative to the containing element.This issue is fixed by changing
position: absolute
toposition: fixed
.Additionally some event handlers are introduced that calculate the position whenever the window is resized or the user scrolls.
Unfortunalety it was not possible for me to test the changes in action, because I couldn't even build anything. I changed to the subfolder
react-prosemirror
and rannpm install
andnpm run build
and got the following error:I also tried
npm install
andnpm run build
in the root folder of the repository, but it was again the same error.