This was causing setting documentEditedHere on actions other than
document edit, like navigating with arrow keys or invoking acejs search
functionality.
session.setMode('ace/mode/xml');
session.setUseWrapMode(true);
session.setMode('ace/mode/xml');
session.setUseWrapMode(true);
- $('textarea', view).on('keyup', function() {
- documentEditedHere = true;
- });
-
editor.getSession().on('change', function() {
documentEditedHere = true;
});
editor.getSession().on('change', function() {
documentEditedHere = true;
});