In firefox the range when doing CTRL+A is the first level content of the contenteditable element, but this was not taken into account when "remembering" the range after clicking on buttons or features of the editor. In chrome the selection begin with the first displayed element (so it may not be a direct child of the editable and is taken into account in the code). opw-1824017 closes #24424