Preventing iterator against getting out of editor DOM.