Vanessa 2025-03-16 20:10:43 +08:00
parent 7cff7ce704
commit cc1aebff1c
4 changed files with 3 additions and 26 deletions

View file

@ -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,