Incorrect behavior of dirty listener
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 32
- Joined: Tue May 26, 2015 10:28 am
Incorrect behavior of dirty listener
Post by aleh.haidash »
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.
Best Regards,
Aleh
Aleh
-
- Posts: 517
- Joined: Wed May 20, 2009 2:40 pm
Re: Incorrect behavior of dirty listener
Hi,
We did not reproduced the problem following the steps you provided.
Maybe you have some customization that modifies the document before setting the editor as read only.
If you remove the following line from your code the editor is still marked as modified after open?
Best Regards,
Mihaela
We did not reproduced the problem following the steps you provided.
Maybe you have some customization that modifies the document before setting the editor as read only.
If you remove the following line from your code the editor is still marked as modified after open?
Code: Select all
editor.setReadOnlyState({readOnly:true});
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service