Minor fix - both consts have the same value.
Shrink range to the innermost element to fix range after apply/removing inline style on non-editable element.