mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
This commit is contained in:
parent
7cff7ce704
commit
cc1aebff1c
4 changed files with 3 additions and 26 deletions
|
|
@ -165,20 +165,6 @@ export const setRefDynamicText = (data: {
|
|||
});
|
||||
};
|
||||
|
||||
export const reloadEmbedBlock = (data: {
|
||||
"embedBlockID": string,
|
||||
"rootID": string
|
||||
}) => {
|
||||
getAllEditor().forEach(editor => {
|
||||
if (editor.protyle.block.rootID === data.rootID) {
|
||||
editor.protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${data.embedBlockID}"]`).forEach(item => {
|
||||
item.removeAttribute("data-render");
|
||||
blockRender(editor.protyle, item);
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
export const setDefRefCount = (data: {
|
||||
"blockID": string,
|
||||
"refCount": number,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue