Allow Passing an Object on currentUser and Render a Custom Prop Instead of Allowing Just a String

Hello,

I am currently using the DocumentEditor component with enableTrackChanges={true} and I need to track each revision using the userId (or more metadata) from my application instead of just the user's name. However, when I attempt to use an object or userId, I'm unsure how to display the name associated with the revision.

For example, in the MentionComponent, there is a DataSource where each item can have an id and displayName. Could a similar approach be implemented for the Revision feature inside the DocumentEditor? This would greatly enhance the functionality by allowing us to manage user revisions more effectively within our application.

Is there currently a way to achieve this, or are there any workarounds that I can use?

Thank you for your assistance.

Best regards!


1 Reply

KD Kesavan D Syncfusion Team August 8, 2024 04:52 PM UTC

Hi Fausto,

Currently Document Editor supports only string value in the currentUser property which is used for setting the username used for trackchanges author. Could you please clarify if you are expecting to have an object type for user in which a displayText and value kind of binding for internal processing. Please elaborate on how you are planning to manage revisions in the application. We need to define the feature accordingly which aligns with Microsoft Word file format since the same has to be saved in the Docx file also.

Regards,

Kesavan.


Loader.
Up arrow icon