2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-02 15:44:28 -06:00

Add missing type for previewImagesInEditor

This commit is contained in:
Jeroen Akkerman 2020-09-29 22:36:48 +02:00
parent b86cd5ba01
commit c94ea5301c
2 changed files with 3 additions and 1 deletions

View File

@ -101,6 +101,7 @@ EasyMDE.toggleSideBySide(editor2);
const editorImages = new EasyMDE({
uploadImage: true,
previewImagesInEditor: false,
imageAccept: 'image/png, image/bmp',
imageCSRFToken: undefined,
imageMaxSize: 10485760,

3
types/easymde.d.ts vendored
View File

@ -162,7 +162,7 @@ declare namespace EasyMDE {
interface OverlayModeOptions {
mode: CodeMirror.Mode<any>
combine?: boolean
}
}
interface Options {
autoDownloadFontAwesome?: boolean;
@ -181,6 +181,7 @@ declare namespace EasyMDE {
parsingConfig?: ParsingOptions;
placeholder?: string;
previewClass?: string | ReadonlyArray<string>;
previewImagesInEditor?: boolean;
previewRender?: (markdownPlaintext: string, previewElement: HTMLElement) => string;
promptURLs?: boolean;
renderingConfig?: RenderingOptions;