Daniel
2026-04-25 08:59:34 +08:00
parent 4a8ed2ff20
commit 59bfab321b
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -485,8 +485,7 @@ const initMainWindow = () => {
});
currentWindow.webContents.on('render-process-gone', (event, details) => {
console.log('Reason: ', details.reason);
console.log('Exit code', details.exitCode);
writeLog("Render process gone [reason=" + details.reason + ", exitCode=" + details.exitCode + "]");
});
if (windowState.isDevToolsOpened) {
+1 -2
View File
@@ -399,7 +399,6 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
fragment.appendChild(doc.body.firstChild);
}
container.innerHTML = '';
container.appendChild(fragment);
document.body.removeChild(iframe);
@@ -408,7 +407,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
// 编辑器内部粘贴
const tempElement = document.createElement("div");
if (1024 * 512 < siyuanHTML.length) {
await streamInsert(tempElement, siyuanHTML)
await streamInsert(tempElement, siyuanHTML);
} else {
tempElement.innerHTML = siyuanHTML;
}