Moved addition to _savedEditorStates in _insertState()