import {StyloConfigAttributes} from './attributes'; import {Languages} from './i18n'; import {StyloMenu} from './menu'; import {StyloPlugin} from './plugin'; import {StyloConfigToolbar} from './toolbar'; export interface StyloConfigI18n { lang: Languages; custom?: Record; } export interface StyloConfig { i18n?: StyloConfigI18n; plugins?: StyloPlugin[]; toolbar?: Partial; menus?: StyloMenu[]; /** * In which type of nodes the placeholder "Press "/" for plugins" should be displayed */ placeholders?: string[]; /** * The paragraphs that accept text. In case user / browser tries to enter text withing another type of paragraphs, Stylo will first preprend the text in a new div to avoid text nodes at the root of the contenteditable container. */ textParagraphs?: string[]; attributes?: Partial; }