🎨 Use the path ending with /
when loading the widget https://github.com/siyuan-note/siyuan/issues/10520
This commit is contained in:
parent
c0a1e2420b
commit
667aa38d42
1 changed files with 3 additions and 1 deletions
|
@ -447,7 +447,9 @@ export const hintRenderTemplate = (value: string, protyle: IProtyle, nodeElement
|
|||
|
||||
export const hintRenderWidget = (value: string, protyle: IProtyle) => {
|
||||
focusByRange(protyle.toolbar.range);
|
||||
insertHTML(protyle.lute.SpinBlockDOM(`<iframe src="/widgets/${value}" data-subtype="widget" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>`), protyle, true);
|
||||
// src 地址以 / 结尾
|
||||
// Use the path ending with `/` when loading the widget https://github.com/siyuan-note/siyuan/issues/10520
|
||||
insertHTML(protyle.lute.SpinBlockDOM(`<iframe src="/widgets/${value}/" data-subtype="widget" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>`), protyle, true);
|
||||
hideElements(["util"], protyle);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue