/** * @description 编辑器配置 * @author wangfupeng */ import { EmotionsType, FontSizeConfType } from './menus'; import { UploadImageHooksType } from './image'; export declare type DicType = { [key: string]: string; }; export declare type ConfigType = { height: number; languageType: string[]; languageTab: string; menus: string[]; fontNames: string[]; lineHeights: string[]; fontSizes: FontSizeConfType; colors: string[]; emotions: EmotionsType[]; zIndex: number; onchange: Function; onfocus: Function; onblur: Function; onchangeTimeout: number; pasteFilterStyle: boolean; pasteIgnoreImg: boolean; pasteTextHandle: Function; styleWithCSS: boolean; linkImgCallback: Function; undoLimit: number | boolean; placeholder: string; zIndexFullScreen: number; showFullScreen: boolean; showLinkImg: boolean; uploadImgServer: string; uploadImgShowBase64: boolean; uploadImgMaxSize: number; uploadImgMaxLength: number; uploadFileName: string; uploadImgParams: DicType; uploadImgParamsWithUrl: boolean; uploadImgHeaders: DicType; uploadImgHooks: UploadImageHooksType; uploadImgTimeout: number; withCredentials: boolean; customUploadImg: Function | null; customAlert: Function | null; shopItemServer: string; lang: string; languages: Resource; linkCheck: Function; linkImgCheck: Function; focus: boolean; }; export declare type Resource = { [language: string]: ResourceLanguage; }; export declare type ResourceLanguage = { [namespace: string]: ResourceKey; }; export declare type ResourceKey = string | { [key: string]: any; }; declare const defaultConfig: any; export default defaultConfig;