@ones-editor/editor 0.0.7-beta.35 → 0.0.7-beta.36
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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +3 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23309,17 +23309,9 @@ var __publicField = (obj, key, value) => {
|
|
|
23309
23309
|
const blockIndex2 = getBlockIndex(block);
|
|
23310
23310
|
let lastBlock22;
|
|
23311
23311
|
blocks.forEach((b, index2) => {
|
|
23312
|
-
|
|
23313
|
-
|
|
23314
|
-
|
|
23315
|
-
editor.doc.localUpdateBlockText(containerId, blockIndex2, [
|
|
23316
|
-
...(_a2 = b.text) != null ? _a2 : []
|
|
23317
|
-
]);
|
|
23318
|
-
} else {
|
|
23319
|
-
const newBlock2 = editor.insertBlock(containerId, blockIndex2 + index2, b, void 0, { noFocus: true });
|
|
23320
|
-
if (index2 === blocks.length - 1) {
|
|
23321
|
-
lastBlock22 = newBlock2;
|
|
23322
|
-
}
|
|
23312
|
+
const newBlock2 = editor.insertBlock(containerId, blockIndex2 + index2, b, void 0, { noFocus: true });
|
|
23313
|
+
if (index2 === blocks.length - 1) {
|
|
23314
|
+
lastBlock22 = newBlock2;
|
|
23323
23315
|
}
|
|
23324
23316
|
});
|
|
23325
23317
|
if (lastBlock22) {
|