feat: compat with surface block structure

This commit is contained in:
Yifeng Wang
2023-01-06 13:26:10 +08:00
committed by himself65
parent 2b8c975e6c
commit 449b08c9c2
4 changed files with 12 additions and 9 deletions

View File

@@ -17,7 +17,7 @@ export const usePropsUpdated: UsePropsUpdated = () => {
return;
}
setTimeout(() => {
editor.model?.propsUpdated.on(() => {
editor.pageBlockModel?.propsUpdated.on(() => {
callbackQueue.current.forEach(callback => {
callback(editor);
});