import { InjectionToken } from '@angular/core'; import EditorJS, { OutputData, SanitizerConfig, EditorConfig } from '@editorjs/editorjs'; /** * Configuration for the EditorJS instance */ export interface NgxEditorJSConfig { /** * If the EditorJS is autofocused on creation (default: false) */ autofocus?: boolean; /** * Any initial output data to render */ data?: OutputData; /** * If true, toolbar won't be shown */ hideToolbar?: boolean; /** * ID of the element to hold the config */ holder?: string; /** * The name of the initial block (default "paragraph") */ initialBlock?: string; /** * Height of Editor's bottom area that allows to set focus on the last Block */ minHeight?: number; /** * First Block placeholder */ blockPlaceholder?: string; /** * Define default sanitizer configuration */ sanitizer?: SanitizerConfig; } /** * The configuration option that can be passed to the `NgxEditorJSModule.forRoot` method */ export interface NgxEditorJSModuleConfig { /** * Configuration options for EditorJS */ editorjs?: EditorConfig; } /** * Injection token provied for `NgxEditorJSConfig` */ export declare const NGX_EDITORJS_CONFIG: InjectionToken; /** * Internal token for injecting the `NgxEditorJSConfig` into the config factory */ export declare const FOR_ROOT_OPTIONS_TOKEN: InjectionToken; /** * Get the EditorJS instance injected into the app */ export declare const EDITIOR_JS_INSTANCE: InjectionToken;