Improves editor behavior when the user clicks outside of the contenteditable element.