mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
f33512ed8c
commit
6104ba3035
1 changed files with 6 additions and 0 deletions
|
|
@ -325,6 +325,12 @@ export const openFileAttr = (attrs: IObject, id: string, focusName = "bookmark")
|
||||||
item.editor.protyle.title.element.querySelector(".protyle-attr").innerHTML = nodeAttrHTML;
|
item.editor.protyle.title.element.querySelector(".protyle-attr").innerHTML = nodeAttrHTML;
|
||||||
item.editor.protyle.wysiwyg.renderCustom(attrsResult);
|
item.editor.protyle.wysiwyg.renderCustom(attrsResult);
|
||||||
}
|
}
|
||||||
|
// https://github.com/siyuan-note/siyuan/issues/6398
|
||||||
|
item.editor.protyle.wysiwyg.element.querySelectorAll(`[data-type~="block-ref"][data-id="${id}"][data-subtype="d"]`).forEach(item => {
|
||||||
|
fetchPost("/api/block/getRefText", {id: id}, (response) => {
|
||||||
|
item.innerHTML = response.data;
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
/// #endif
|
/// #endif
|
||||||
fetchPost("/api/attr/resetBlockAttrs", {id, attrs: attrsResult}, () => {
|
fetchPost("/api/attr/resetBlockAttrs", {id, attrs: attrsResult}, () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue