refactor: iframe block support in RecordFormBlockInitializers (#3541)
This commit is contained in:
parent
90cdef8662
commit
bdc90155c4
@ -9,6 +9,24 @@ export class IframeBlockPlugin extends Plugin {
|
|||||||
title: '{{t("Iframe")}}',
|
title: '{{t("Iframe")}}',
|
||||||
Component: 'IframeBlockInitializer',
|
Component: 'IframeBlockInitializer',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const createFormBlockInitializers = this.app.schemaInitializerManager.get('CreateFormBlockInitializers');
|
||||||
|
createFormBlockInitializers?.add('otherBlocks.iframe', {
|
||||||
|
title: '{{t("Iframe")}}',
|
||||||
|
Component: 'IframeBlockInitializer',
|
||||||
|
});
|
||||||
|
|
||||||
|
const recordBlockInitializers = this.app.schemaInitializerManager.get('RecordBlockInitializers');
|
||||||
|
recordBlockInitializers?.add('otherBlocks.iframe', {
|
||||||
|
title: '{{t("Iframe")}}',
|
||||||
|
Component: 'IframeBlockInitializer',
|
||||||
|
});
|
||||||
|
|
||||||
|
const recordFormBlockInitializers = this.app.schemaInitializerManager.get('RecordFormBlockInitializers');
|
||||||
|
recordFormBlockInitializers?.add('otherBlocks.iframe', {
|
||||||
|
title: '{{t("Iframe")}}',
|
||||||
|
Component: 'IframeBlockInitializer',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user