Handle non-editable block elements in moveToEditablePosition.
Rewritten moveToClosesEditablePosition method.