I started using EssentialJS for my company because we need to find a powerful Document Editor for our application. I am currently madding a POC in order to choose between this and CKEditor.
We use Angular and I success to integrate the Angular Component Editor but I can’t find a complete example for collaborative editing.
What did I need to track changes between many connected Users ?
I need to :
What did I need in my backend ? An Object that represents my content and a websocket with the changes in content, comments etc ? Or the changes will be get on the refresh of the page ?
How is the complete form of the JSON object that represent the Editor content ? What are the properties to get comments and track changes for my back.
Can I have an example to achieve this please ? I cannot see a concrete example anywhere.
Thanks
|
containerInstance.documentEditor.currentUser = “[email protected]” |
|
What did I need in my backend ? An Object that represents my content and a websocket with the changes in content, comments etc ? Or the changes will be get on the refresh of the page ?
|
Document editor provides option to export the document editor content in backend. You can either pass the blob or SFDT to server-side and save the document.
| |
|
How is the complete form of the JSON object that represent the Editor content ? What are the properties to get comments and track changes for my back.
|
Document editor content will be in SFDT structure.
if you want to get the details of track changes. You can get it from revisions property of document editor module.
Kindly refer the below documentation, which in Javascript platform.
Currently we don’t have any API to retrieve the comments. Can you please share on how you need the details on comments in a document? |
|
container.selectionChange = ()=>{
container.restrictEditing = true;
} else {
container.restrictEditing = false;
}
};
|
Hi I'm trying to make a collaborative editing for PDFViewer, I did try to leverage it using websocket but looks like it is not updating properly for all client.
it would be better if you have some example or some documentation on how to achieve it
Hi Adrian,
Currently, there is no support for collaborating feature in PDF Viewer. We have already logged this as a feature request as "Support for Collaborative editing in PDF Viewer". We will implement this feature in any of our upcoming releases due to the various features and improvements are planned in our roadmap and let you know once this feature is implemented. You can track the status using the below feedback link.
Feedback link: Support for Collaborative editing in PDF Viewer in JavaScript | Feedback Portal
Regards,
Dhanush S