2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-08-12 11:42:45 -06:00

Expose the updateStatusBar type

This commit is contained in:
Vadym Borodin 2023-01-12 14:38:17 +02:00
parent 041594ae4a
commit fbc181f5c8
2 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,7 @@ const editor2 = new EasyMDE({
});
editor2.clearAutosavedValue();
editor2.updateStatusBar('upload-image', 'Drag & drop images!');
EasyMDE.togglePreview(editor2);
EasyMDE.toggleSideBySide(editor2);

2
types/easymde.d.ts vendored
View File

@ -258,6 +258,8 @@ declare class EasyMDE {
clearAutosavedValue(): void;
updateStatusBar(itemName: string, content: string): void;
static toggleBold: (editor: EasyMDE) => void;
static toggleItalic: (editor: EasyMDE) => void;
static toggleStrikethrough: (editor: EasyMDE) => void;