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>)
  • Optional setHeaders?: ((headers) => void)
      • (headers): void
      • Parameters

        • headers: Headers

        Returns void

  • Optional setLang?: ((lang) => void)
      • (lang): void
      • Parameters

        • lang: string

        Returns void

  • Optional seth5pObject?: ((h5pObject) => void)
  • state: EditorState
  • Optional submitContent?: ((data, id?) => Promise<{
        id: string | number;
    } | void>)
      • (data, id?): Promise<{
            id: string | number;
        } | void>
      • Parameters

        Returns Promise<{
            id: string | number;
        } | void>

  • url: string

Generated using TypeDoc