-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
There's a whole lot of edge cases that the simple abspos CSS positioning we're currently using for simpla-text-toolbar would fail - eg: if the range is in a scollable container (but the toolbar is relative to the body/document).
Two solutions to this:
-
Exit the toolbar on scroll, similar to how
simpla-imgcontainer works -
Use JS to position (and update the position of) the toolbar, maybe taking advantage of a library like Tether.js (though don't think tether supports ranges out of the box)
Whatever we decide, should be consistent with simpla-img-editor as well (ie: either bail on any sort of pos change, or handle positioning in a more robust, but less performant manner).
Reactions are currently unavailable