UNPKG

2.03 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 excludeMenus: string[];
17 fontNames: string[];
18 lineHeights: string[];
19 indentation: IndentationType;
20 fontSizes: FontSizeConfType;
21 colors: string[];
22 emotions: EmotionsType[];
23 zIndex: number;
24 onchange: Function;
25 onfocus: Function;
26 onblur: Function;
27 onchangeTimeout: number;
28 pasteFilterStyle: boolean;
29 pasteIgnoreImg: boolean;
30 pasteTextHandle: Function;
31 styleWithCSS: boolean;
32 linkImgCallback: Function;
33 placeholder: string;
34 zIndexFullScreen: number;
35 showFullScreen: boolean;
36 showLinkImg: boolean;
37 uploadImgAccept: string[];
38 uploadImgServer: string;
39 uploadImgShowBase64: boolean;
40 uploadImgMaxSize: number;
41 uploadImgMaxLength: number;
42 uploadFileName: string;
43 uploadImgParams: DicType;
44 uploadImgParamsWithUrl: boolean;
45 uploadImgHeaders: DicType;
46 uploadImgHooks: UploadImageHooksType;
47 uploadImgTimeout: number;
48 withCredentials: boolean;
49 customUploadImg: Function | null;
50 customAlert: Function;
51 onCatalogChange: Function | null;
52 lang: string;
53 languages: typeof langConfig;
54 linkCheck: Function;
55 linkImgCheck: Function;
56 compatibleMode: () => boolean;
57 historyMaxSize: number;
58 focus: boolean;
59 onlineVideoCheck: Function;
60 onlineVideoCallback: Function;
61};
62export declare type Resource = {
63 [language: string]: ResourceLanguage;
64};
65export declare type ResourceLanguage = {
66 [namespace: string]: ResourceKey;
67};
68export declare type ResourceKey = string | {
69 [key: string]: any;
70};
71declare const defaultConfig: any;
72export default defaultConfig;