🎨 Clean code

This commit is contained in:
Daniel 2024-04-23 13:29:32 +08:00
parent 7da3dec244
commit e082ce983d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 17 additions and 18 deletions

View file

@ -808,12 +808,12 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
item.querySelectorAll('[data-type="search-mark"]').forEach(markItem => {
markItem.outerHTML = markItem.innerHTML;
});
const id = item.getAttribute("data-node-id")
const id = item.getAttribute("data-node-id");
sourceIds.push(id);
srcs.push({
id,
isDetached: false,
})
});
});
hideElements(["gutter"], protyle);