Keep revision history after accept/reject, unnecessary revision generated when opening document

I'm using DocumentEditor of EJ2 Javascript ES5 19.3.43 and encountered some difficulties. 

#1: Is there any way to keep revision history after accepting/rejecting changes in order to preserve edit history without using DocIO or any server-side component, keeping the document in SFDT format? 

#2: Opening an existing SFDT document with DocumentEditor.open() triggers revision change, but in my opinion it's unnecessary when editing an existing document. Is there any way to open an existing document without triggering revision change or suppress revision change on open?

Thanks in advance.


2 Replies

MA Mohammed Affan Saqib Hussain Syncfusion Team August 30, 2024 01:10 PM UTC

Hi Laszlo Gulyas,

Query 1: Regarding preserving history after accepting/rejecting changes without using DocIO or any server-side component

Internal history is already preserved, but this history will be destroyed when the document is closed. It will start recording again once a new document is opened. However, preserving the history outside of the editor, even after closing the document, is not currently possible. Could you please explain in detail the life cycle of the history and how it is used in your application?

Query 2: Regarding when opening an existing SFDT document with DocumentEditor.open() triggers revision change

The Document Editor doesn’t have that event; there might be a misunderstanding. Please refer to the link below for all the events available in the Document Editor and Document Editor Container.

Container Events -https://ej2.syncfusion.com/documentation/api/document-editor-container#events

Editor Events - https://ej2.syncfusion.com/documentation/api/document-editor#events


Regards,

Mohammed Affan C



MA Mohammed Affan Saqib Hussain Syncfusion Team August 30, 2024 01:22 PM UTC

Hi Laszlo Gulyas,
Regarding Query 2, could you please share the sample and the document you tried so that we can validate the issue?

Regards,

Mohammed Affan C



Loader.
Up arrow icon