chore(editor): remove page block feature flag (#10251)

This commit is contained in:
L-Sun
2025-02-18 09:25:05 +00:00
parent cedee0a1b2
commit e639f08b71
13 changed files with 30 additions and 81 deletions
@@ -154,4 +154,17 @@ export class NoteBlockModel
}
return false;
}
/**
* We define a note block as a page block if it is the first visible note
*/
isPageBlock() {
return (
this.parent?.children.find(
child =>
child instanceof NoteBlockModel &&
child.displayMode !== NoteDisplayMode.EdgelessOnly
) === this
);
}
}