Skip to content

Instantly share code, notes, and snippets.

@buildmotion
Created February 1, 2018 06:50
Show Gist options
  • Save buildmotion/988c1e2907149dc16debbb76d24cfb57 to your computer and use it in GitHub Desktop.
Save buildmotion/988c1e2907149dc16debbb76d24cfb57 to your computer and use it in GitHub Desktop.
MarkdownEditorOptions.ts
import * as SimpleMDE from 'simplemde'; // MUST NPM INSTALL @types/[email protected]
export class MarkdownEditorOptions implements SimpleMDE.Options {
autoDownloadFontAwesome?: boolean;
autofocus?: boolean;
autosave?: SimpleMDE.AutoSaveOptions;
blockStyles?: SimpleMDE.BlockStyleOptions;
element?: HTMLElement;
forceSync?: boolean;
hideIcons?: string[];
indentWithTabs?: boolean;
initialValue?: string;
insertTexts?: SimpleMDE.InsertTextOptions;
lineWrapping?: boolean;
parsingConfig?: SimpleMDE.ParsingOptions;
placeholder?: string;
previewRender?: (markdownPlaintext: string, previewElement?: HTMLElement) => string;
promptURLs?: boolean;
renderingConfig?: SimpleMDE.RenderingOptions;
shortcuts?: SimpleMDE.ShortcutsArray;
showIcons?: string[];
spellChecker?: boolean;
status?: boolean | Array<string | SimpleMDE.StatusBarItem>;
styleSelectedText?: boolean;
tabSize?: number;
toolbar?: boolean | Array<string | SimpleMDE.ToolbarIcon>;
toolbarTips?: boolean;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment