Incorrect behavior of dirty listener
Posted: Fri Mar 02, 2018 2:22 pm
Hello.
I use Webapp 19.1 and faced with Incorrect behavior of dirty listener.
Steps to reproduce:
1) Open document, don't made any changes.
2) Using js api change readonly state
3) I recived notify that dirty status was changed to TRUE
4) Herewith the undo button becomes active
Why it happens? How can i avoid this situation?
Thanks.
I use Webapp 19.1 and faced with Incorrect behavior of dirty listener.
Steps to reproduce:
1) Open document, don't made any changes.
2) Using js api change readonly state
Code: Select all
editor.setReadOnlyState({readOnly:true});
Code: Select all
goog.events.listen(editor, sync.api.Editor.EventTypes.DIRTY_STATUS_CHANGED, function(e) {
//here
});
Why it happens? How can i avoid this situation?
Thanks.