Skip to content

Commit

Permalink
Reset to clean on setValue
Browse files Browse the repository at this point in the history
  • Loading branch information
szschaler authored Dec 8, 2023
1 parent 60aae9e commit c8db740
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform/src/Panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ class Panel {

setValue(value) {
this.editor.setValue((value+""), 1);
// Reset undo manager
this.editor.session.getUndoManager().markClean();
}

getValueSha() {
Expand Down

0 comments on commit c8db740

Please sign in to comment.