mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user