@ones-editor/editor 0.0.7-beta.25 → 0.0.7-beta.26
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.
package/dist/index.js
CHANGED
|
@@ -4534,11 +4534,11 @@ div.editor-root div.editor-content div[data-type=editor-container] div.embed-blo
|
|
|
4534
4534
|
white-space: nowrap;
|
|
4535
4535
|
border-radius: 3px;
|
|
4536
4536
|
}
|
|
4537
|
-
.editor-root.history .history-deleted-block
|
|
4537
|
+
.editor-root.history .history-deleted-block.history-deleted-box {
|
|
4538
4538
|
background-color: unset !important;
|
|
4539
4539
|
text-decoration: unset !important;
|
|
4540
4540
|
}
|
|
4541
|
-
.editor-root.history .history-deleted-block
|
|
4541
|
+
.editor-root.history .history-deleted-block.history-deleted-box:hover::after {
|
|
4542
4542
|
opacity: 0;
|
|
4543
4543
|
}
|
|
4544
4544
|
.editor-root.history .history-inserted-text {
|
|
@@ -60366,7 +60366,8 @@ ${codeText}
|
|
|
60366
60366
|
created: Date.now(),
|
|
60367
60367
|
text: plainText,
|
|
60368
60368
|
deletedOffset,
|
|
60369
|
-
deletedOrder: currentDeletedOrder
|
|
60369
|
+
deletedOrder: currentDeletedOrder,
|
|
60370
|
+
oldAttr: text2[0].attributes
|
|
60370
60371
|
};
|
|
60371
60372
|
return {
|
|
60372
60373
|
insert: " ",
|
|
@@ -60779,13 +60780,18 @@ ${codeText}
|
|
|
60779
60780
|
const data = boxData;
|
|
60780
60781
|
assert(logger$l, data.text, `no text for text box data: ${JSON.stringify(boxData)}`);
|
|
60781
60782
|
assert(logger$l, typeof data.text === "string", `invalid text type for text box data: ${JSON.stringify(boxData)}`);
|
|
60782
|
-
const
|
|
60783
|
+
const oldBoxData = data.oldAttr;
|
|
60784
|
+
const boxClass = editor.editorBoxes.getBoxClass(oldBoxData.type);
|
|
60785
|
+
if (boxClass) {
|
|
60786
|
+
boxClass.updateBoxContent(editor, boxElement, boxContent, oldBoxData);
|
|
60787
|
+
}
|
|
60788
|
+
addClass(boxContent, "history-deleted-box");
|
|
60783
60789
|
const user = data.user;
|
|
60784
60790
|
const { flag, selection } = getUserColors(editor.doc, user);
|
|
60785
|
-
|
|
60786
|
-
|
|
60787
|
-
|
|
60788
|
-
|
|
60791
|
+
boxContent.setAttribute("history-deleted-by", user.displayName);
|
|
60792
|
+
boxContent.setAttribute("data-op-description", getOpDescription(user, "delete"));
|
|
60793
|
+
boxContent.style.setProperty(OpColor, flag);
|
|
60794
|
+
boxContent.style.setProperty(OpSelectedColor, selection);
|
|
60789
60795
|
}
|
|
60790
60796
|
function convertTo$8(editor, boxData, doc2, type) {
|
|
60791
60797
|
const data = boxData;
|