Type alias EditorContextConfig
EditorContextConfig: { getContentConfig?: ((id) => Promise<EditorSettings | void>); getEditorConfig?: ((id?) => Promise<EditorSettings | void>); setHeaders?: ((headers) => void); setLang?: ((lang) => void); seth5pObject?: ((h5pObject) => void); state: EditorState; submitContent?: ((data,
id?) => Promise<{ id: string | number; } | void>); url: string; } Type declaration
Optional
getContentConfig?: ((id) => Promise<EditorSettings | void>)
Optional
getEditorConfig?: ((id?) => Promise<EditorSettings | void>)
- (id?): Promise<EditorSettings | void>
Parameters
Optional
id: number | string
Optional
setHeaders?: ((headers) => void)
Optional
setLang?: ((lang) => void)
Optional
seth5pObject?: ((h5pObject) => void)
- (h5pObject): void
Returns void
Optional
submitContent?: ((data, id?) => Promise<{
id: string | number;
} | void>)
- (data, id?): Promise<{
id: string | number;
} | void> Returns Promise<{
id: string | number;
} | void>
url: string