Did you set the right booleans for your data?:
Both are defaulted to True, and the second parameter is should be False if your data isnt versioned.
startEditing ({with_undo}, {multiuser_mode})# Edit session is started without an undo/redo stack for versioned data # (for second argument, use False for unversioned data) edit.startEditing(False, True)
 editor.htm