UNPKG

1.93 kBTypeScriptView Raw
1/**
2 * @description 编辑器配置
3 * @author wangfupeng
4 */
5import { EmotionsType, FontSizeConfType, IndentationType } from './menus';
6import { UploadImageHooksType } from './image';
7import langConfig from './lang';
8export declare type DicType = {
9 [key: string]: string;
10};
11export declare type ConfigType = {
12 height: number;
13 languageType: string[];
14 languageTab: string;
15 menus: string[];
16 fontNames: string[];
17 lineHeights: string[];
18 indentation: IndentationType;
19 fontSizes: FontSizeConfType;
20 colors: string[];
21 emotions: EmotionsType[];
22 zIndex: number;
23 onchange: Function;
24 onfocus: Function;
25 onblur: Function;
26 onchangeTimeout: number;
27 pasteFilterStyle: boolean;
28 pasteIgnoreImg: boolean;
29 pasteTextHandle: Function;
30 styleWithCSS: boolean;
31 linkImgCallback: Function;
32 placeholder: string;
33 zIndexFullScreen: number;
34 showFullScreen: boolean;
35 showLinkImg: boolean;
36 uploadImgAccept: string[];
37 uploadImgServer: string;
38 uploadImgShowBase64: boolean;
39 uploadImgMaxSize: number;
40 uploadImgMaxLength: number;
41 uploadFileName: string;
42 uploadImgParams: DicType;
43 uploadImgParamsWithUrl: boolean;
44 uploadImgHeaders: DicType;
45 uploadImgHooks: UploadImageHooksType;
46 uploadImgTimeout: number;
47 withCredentials: boolean;
48 customUploadImg: Function | null;
49 customAlert: Function;
50 onCatalogChange: Function | null;
51 lang: string;
52 languages: typeof langConfig;
53 linkCheck: Function;
54 linkImgCheck: Function;
55 compatibleMode: () => boolean;
56 historyMaxSize: number;
57 focus: boolean;
58};
59export declare type Resource = {
60 [language: string]: ResourceLanguage;
61};
62export declare type ResourceLanguage = {
63 [namespace: string]: ResourceKey;
64};
65export declare type ResourceKey = string | {
66 [key: string]: any;
67};
68declare const defaultConfig: any;
69export default defaultConfig;