This commit is contained in:
parent
f4c3be9bd0
commit
b7d44cb79e
2 changed files with 1 additions and 13 deletions
|
@ -338,18 +338,6 @@ const boot = () => {
|
|||
shell.openExternal(url)
|
||||
})
|
||||
|
||||
// IFrame 块不跟随重定向 https://github.com/siyuan-note/siyuan/issues/6327
|
||||
mainWindow.webContents.on('will-redirect', (event, url, isInPlace, isMainFrame) => {
|
||||
if (url.startsWith('http://127.0.0.1:' + kernelPort)) {
|
||||
return
|
||||
}
|
||||
|
||||
if (!isMainFrame) {
|
||||
event.preventDefault()
|
||||
return
|
||||
}
|
||||
})
|
||||
|
||||
mainWindow.on('close', (event) => {
|
||||
if (mainWindow && !mainWindow.isDestroyed()) {
|
||||
mainWindow.webContents.send('siyuan-save-close', false)
|
||||
|
|
|
@ -163,7 +163,7 @@ export const hintSlash = (key: string, protyle: IProtyle) => {
|
|||
<input class="b3-form__upload" type="file" ${protyle.options.upload.accept ? 'multiple="' + protyle.options.upload.accept + '"' : ""}></div>`,
|
||||
}, {
|
||||
filter: ["iframe", "嵌入网址", "qianruwangzhan", "qrwz"],
|
||||
value: '<iframe src="" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>',
|
||||
value: '<iframe sandbox="allow-forms allow-presentation allow-same-origin allow-scripts allow-modals" src="" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>',
|
||||
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconLanguage"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.insertIframeURL}</span></div>`,
|
||||
}, {
|
||||
filter: ["输入图片链接", "input image url", "shurutupianlianjie", "srtptp"],
|
||||
|
|
Loading…
Add table
Reference in a new issue