set dirty for TextEditor