Skip to content

Use JS lib handle toolbar positioning #36

@madeleineostoja

Description

@madeleineostoja

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:

  1. Exit the toolbar on scroll, similar to how simpla-img container works

  2. 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).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions