Fixes RTE overlay not updating sometimes on enhancement/marker changes.
Fixes initial enhancement and marker insertion position to be closer to the current selection.