File tree 2 files changed +1
-20
lines changed
2 files changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -377,6 +377,7 @@ export class BrowserShapeUtil extends BaseBoxShapeUtil<BrowserShape> {
377
377
name = { `iframe-1-${ shape . id } ` }
378
378
id = { `iframe-1-${ shape . id } ` }
379
379
onLoad = { ( e ) => {
380
+ if ( ! isLoading ) return ;
380
381
const iframe = e . target as HTMLIFrameElement ;
381
382
const html = iframe . contentDocument ?. documentElement . outerHTML ;
382
383
if ( html === `<html><head></head><body></body></html>` ) {
Original file line number Diff line number Diff line change @@ -49,26 +49,6 @@ function UI() {
49
49
}
50
50
} , [ editor ] ) ;
51
51
52
- // useEffect(() => {
53
- // const unlisten = editor.store.listen(
54
- // (update) => {
55
- // for (const record of Object.values(update.changes.added)) {
56
- // if (record.typeName === "shape" && record.type === "text") {
57
- // editor.updateShape({
58
- // id: record.id,
59
- // type: record.type,
60
- // meta: {
61
- // prompt: true,
62
- // },
63
- // });
64
- // }
65
- // }
66
- // },
67
- // { scope: "document", source: "user" }
68
- // );
69
- // return unlisten;
70
- // }, [editor]);
71
-
72
52
return (
73
53
< >
74
54
< div
You can’t perform that action at this time.
0 commit comments