edu360-web-ui 1.0.93 → 1.0.94
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.
|
@@ -97319,12 +97319,10 @@ function loadContentInChunks({
|
|
|
97319
97319
|
onComplete == null ? void 0 : onComplete();
|
|
97320
97320
|
return;
|
|
97321
97321
|
}
|
|
97322
|
-
console.log(`准备在位置 ${pos} 插入 ${chunk.length} 个块`);
|
|
97323
97322
|
editor.chain().insertContentAt(pos, chunk).run();
|
|
97324
97323
|
index += chunkSize;
|
|
97325
97324
|
onProgress == null ? void 0 : onProgress(Math.min(index / total, 1));
|
|
97326
97325
|
const nextPos = editor.state.doc.content.size;
|
|
97327
|
-
console.log(`内容插入完成,下一次插入位置是 ${nextPos}`);
|
|
97328
97326
|
if ("requestIdleCallback" in window) {
|
|
97329
97327
|
requestIdleCallback(() => insertChunk(nextPos));
|
|
97330
97328
|
} else {
|