Restore the end point of selection range to where it was initially after splitting boundaries.

Restore the end point of selection range to where it was initially after splitting boundaries.

Given the following selection &lt;p&gt;a[bcd]&lt;span&gt;efg&lt;/span&gt;&lt;/p&gt; calling the
splitBoundaries at the moment moves the end point of selection to immediately after opening span &lt;p&gt;a[bcd&lt;span&gt;]efg&lt;/span&gt;&lt;/p&gt;
this causes getTextElements (passing includePartial = true) to return
both "bcd" and "efg" which is incorrect.