mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -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) {
|
if (!range) {
|
||||||
range = this.getSelection();
|
range = this.getSelection();
|
||||||
}
|
}
|
||||||
|
moveRangeBoundariesDownTree(range);
|
||||||
|
|
||||||
let seenAttributes = 0;
|
let seenAttributes = 0;
|
||||||
let element: Node | null = range.commonAncestorContainer;
|
let element: Node | null = range.commonAncestorContainer;
|
||||||
|
|
Loading…
Reference in a new issue