Fix range can overflow contenteditable