This commit is contained in:
parent
1c100950bd
commit
eb28a44022
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue