inspector: reset code editor undo history at init

This commit is contained in:
jean-emmanuel 2021-12-13 18:53:50 +01:00
parent 8872d68b7c
commit e61202f147

View file

@ -214,6 +214,7 @@ class UiInspectorField extends UiWidget {
this.container.appendChild(editor.element)
setTimeout(()=>{
editor.getSession().getUndoManager().reset()
editor.resize()
})
}