You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When selecting text and dragging the mouse outside the editor area, the formatting toolbar does not appear. This happens because event listeners are currently attached to pmView.dom, which does not capture mouseup events occurring outside the editor.
Describe the solution you'd like
Instead of attaching event listeners to pmView.dom, they should be bound to document. This would ensure that mouseup events are captured regardless of whether the cursor is inside or outside the editor, making the toolbar appear as expected.
Describe alternatives you've considered
Keeping the event listeners on pmView.dom but adding a global event listener specifically for mouseup outside the editor.
Providing an option to toggle between pmView.dom and document for event handling.
Additional context
A place where the issue is:
Bonus
[ ] I'm a sponsor and would appreciate if you could look into this sooner than later 💖