Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make tether-to-selection use fixed positioning relative to selection
Changes `{{tether-to-selection}}` to: * use "position: fixed". Avoids issues when the editor is in an absolutely-positioned div * (bugfix) Do not position relative to ".mobiledoc-editor". This was error-prone when there was more than one editor on the page, and also unnecessary. * Add 'mobiledoc-selection-tether' class (escape hatch for styling by consumers) * (bugfix) Read the window's selection metrics before element insertion. When the yielded link-prompt component focuses its input field, that changes the window selection. Reading before insertion fixes this problem.
- Loading branch information