diff --git a/package.json b/package.json index 63e3406..84debd2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@manuscripts/track-changes-plugin", - "version": "2.3.9", + "version": "2.3.10-LEAN-5459.2", "author": "Atypon Systems LLC", "license": "Apache-2.0", "homepage": "https://github.com/Atypon-OpenSource/manuscripts-track-changes-plugin", diff --git a/src/utils/shared-utils.ts b/src/utils/shared-utils.ts index 6564d2d..fa61db8 100644 --- a/src/utils/shared-utils.ts +++ b/src/utils/shared-utils.ts @@ -125,6 +125,7 @@ export const addTrackChangesAttributes = (attrs: Attrs, dom: Element) => { dom.removeAttribute('data-track-id') dom.removeAttribute('data-track-op') dom.removeAttribute('data-track-status') + dom.removeAttribute('data-track-author') const changes = attrs.dataTracked as TrackedAttrs[] if (!changes || !changes.length) { @@ -134,6 +135,7 @@ export const addTrackChangesAttributes = (attrs: Attrs, dom: Element) => { dom.setAttribute('data-track-id', change.id) dom.setAttribute('data-track-op', change.operation) dom.setAttribute('data-track-status', change.status) + dom.setAttribute('data-track-author', change.authorID) } const classNames = new Map([