@ones-editor/editor 0.0.7-beta.27 → 0.0.7-beta.28
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
|
@@ -60761,9 +60761,16 @@ ${codeText}
|
|
|
60761
60761
|
assert(logger$l, data.text, `no text for text box data: ${JSON.stringify(boxData)}`);
|
|
60762
60762
|
assert(logger$l, typeof data.text === "string", `invalid text type for text box data: ${JSON.stringify(boxData)}`);
|
|
60763
60763
|
const oldBoxData = data.oldAttr;
|
|
60764
|
-
|
|
60765
|
-
|
|
60766
|
-
|
|
60764
|
+
if (oldBoxData && oldBoxData.box) {
|
|
60765
|
+
const childBoxElement = createBoxElement(oldBoxData);
|
|
60766
|
+
const childBoxContent = createBoxContentElement(childBoxElement);
|
|
60767
|
+
const boxClass = editor.editorBoxes.getBoxClass(oldBoxData.type);
|
|
60768
|
+
if (boxClass) {
|
|
60769
|
+
boxClass.updateBoxContent(editor, childBoxElement, childBoxContent, oldBoxData);
|
|
60770
|
+
}
|
|
60771
|
+
boxContent.appendChild(childBoxElement);
|
|
60772
|
+
} else {
|
|
60773
|
+
createElement("span", [], boxContent, data.text);
|
|
60767
60774
|
}
|
|
60768
60775
|
addClass(boxContent, "history-deleted-box");
|
|
60769
60776
|
const user = data.user;
|