mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -173,6 +173,9 @@ export const setDefRefCount = (data: {
|
||||
}) => {
|
||||
getAllEditor().forEach(editor => {
|
||||
if (data.rootID === data.blockID && editor.protyle.block.rootID === data.rootID) {
|
||||
if (!editor.protyle.title) {
|
||||
return;
|
||||
}
|
||||
const attrElement = editor.protyle.title.element.querySelector(".protyle-attr");
|
||||
const countElement = attrElement.querySelector(".protyle-attr--refcount");
|
||||
if (countElement) {
|
||||
|
||||
Reference in New Issue
Block a user