At the moment the apiFetch function has to be set at the initialization of the page.
The problem I have with this is that I cannot use my angular services then because angular has not been loaded at that time. I was wondering if there maybe could be a way to set apiFetch later on, maybe at the initialization of the editor? Eg like this:
import { apiFetch } from 'src/app/new-api-fetch'
import { editPost } from '@frontkom/gutenberg-js';
editPost.initializeEditor('editor', 'page', 1, settings, {}, apiFetch);
At the moment the apiFetch function has to be set at the initialization of the page. The problem I have with this is that I cannot use my angular services then because angular has not been loaded at that time. I was wondering if there maybe could be a way to set apiFetch later on, maybe at the initialization of the editor? Eg like this: