@seafile/sdoc-editor 0.5.41-beta.7 → 0.5.41-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -114,6 +114,7 @@ const getTextDiff = (element, oldElement, diff) => {
|
|
|
114
114
|
const oldText = oldElement.text;
|
|
115
115
|
const textDiff = new DiffText(oldText || '', newText || '');
|
|
116
116
|
const textDiffs = textDiff.getDiffs();
|
|
117
|
+
console.log('textDiffs', textDiffs);
|
|
117
118
|
let newChildren = [];
|
|
118
119
|
textDiffs.forEach((item, index) => {
|
|
119
120
|
const id = "".concat(element.id || slugid.nice(), "-").concat(index);
|
|
@@ -279,6 +280,7 @@ const getElementDiffValue = (currentContent, oldContent) => {
|
|
|
279
280
|
ids: oldIds
|
|
280
281
|
} = generateIdMapAndIds(oldContent);
|
|
281
282
|
const diffs = getIdDiffs(oldIds, currentIds);
|
|
283
|
+
console.log('diffs', diffs);
|
|
282
284
|
diffs.forEach(diffItem => {
|
|
283
285
|
const elementIds = diffItem.value;
|
|
284
286
|
if (diffItem.removed) {
|