mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-21 23:03:11 -05:00
Move range down tree for font info
This means if the selection is equivalent to just being inside a text node, you'll get back the font info. Resolves #462
This commit is contained in:
parent
333d5fbd09
commit
077d29e778
1 changed files with 1 additions and 0 deletions
|
@ -1255,6 +1255,7 @@ class Squire {
|
|||
if (!range) {
|
||||
range = this.getSelection();
|
||||
}
|
||||
moveRangeBoundariesDownTree(range);
|
||||
|
||||
let seenAttributes = 0;
|
||||
let element: Node | null = range.commonAncestorContainer;
|
||||
|
|
Loading…
Reference in a new issue