UNPKG

md-editor-rt

Version:

Markdown editor for react, developed in jsx and typescript, dark theme、beautify content by prettier、render articles directly、paste or clip the picture and upload it...

79 lines (78 loc) 2.53 kB
import { CodeCss, Config, GlobalConfig, Footers, StaticTextDefault, ToolbarNames } from './type'; export declare const prefix = "md-editor"; export declare const defaultEditorId = "md-editor-rt"; export declare const cdnBase = "https://unpkg.com"; export declare const highlightUrl = "https://unpkg.com/@highlightjs/cdn-assets@11.10.0/highlight.min.js"; export declare const prettierUrl: { main: string; markdown: string; }; export declare const cropperUrl: { css: string; js: string; }; export declare const screenfullUrl = "https://unpkg.com/screenfull@5.2.0/dist/screenfull.js"; export declare const mermaidUrl = "https://unpkg.com/mermaid@11.3.0/dist/mermaid.min.js"; export declare const katexUrl: { js: string; css: string; }; export declare const codeCss: CodeCss; export declare const editorExtensionsAttrs: GlobalConfig['editorExtensionsAttrs']; export declare const allToolbar: Array<ToolbarNames>; export declare const allFooter: Array<Footers>; export declare const staticTextDefault: StaticTextDefault; export declare const defaultProps: { modelValue: string; theme: string; className: string; onChange: () => void; onSave: () => void; pageFullscreen: boolean; preview: boolean; htmlPreview: boolean; language: string; toolbars: ToolbarNames[]; toolbarsExclude: never[]; noPrettier: boolean; onHtmlChanged: () => void; onGetCatalog: () => void; tabWidth: number; showCodeRowNumber: boolean; previewTheme: string; mdHeadingId: (text: string) => string; style: {}; tableShape: number[]; noMermaid: boolean; sanitize: (text: string) => string; placeholder: string; noKatex: boolean; defToolbars: never[]; onError: () => void; codeTheme: string; footers: Footers[]; scrollAuto: boolean; defFooters: never[]; formatCopiedText: (t: string) => string; noUploadImg: boolean; codeStyleReverse: boolean; codeStyleReverseList: string[]; autoFocus: boolean; disabled: boolean; readOnly: boolean; autoDetectCode: boolean; noHighlight: boolean; noImgZoomIn: boolean; inputBoxWidth: string; sanitizeMermaid: (h: string) => Promise<string>; transformImgUrl: (t: string) => string; codeFoldable: boolean; autoFoldThreshold: number; catalogLayout: string; }; export declare const globalConfig: GlobalConfig; export declare const config: Config; /** * 拖拽时最小的宽度 */ export declare const MinInputBoxWidth = 0.1;