You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2020. It is now read-only.
Copy file name to clipboardexpand all lines: README.md
+77-12
Original file line number
Diff line number
Diff line change
@@ -25,18 +25,18 @@ The editor is entirely customizable, from theming to toolbar buttons and javascr
25
25
26
26
-[Install EasyMDE](#install-easymde)
27
27
-[How to use](#how-to-use)
28
-
-[Loading the editor](#loading-the-editor)
29
-
-[Editor functions](#editor-functions)
28
+
- [Loading the editor](#loading-the-editor)
29
+
- [Editor functions](#editor-functions)
30
30
-[Configuration](#configuration)
31
-
-[Options list](#options-list)
32
-
-[Options example](#options-example)
33
-
-[Toolbar icons](#toolbar-icons)
34
-
-[Toolbar customization](#toolbar-customization)
35
-
-[Keyboard shortcuts](#keyboard-shortcuts)
31
+
- [Options list](#options-list)
32
+
- [Options example](#options-example)
33
+
- [Toolbar icons](#toolbar-icons)
34
+
- [Toolbar customization](#toolbar-customization)
35
+
- [Keyboard shortcuts](#keyboard-shortcuts)
36
36
-[Advanced use](#advanced-use)
37
-
-[Event handling](#event-handling)
38
-
-[Removing EasyMDE from text area](#removing-easymde-from-text-area)
39
-
-[Useful methods](#useful-methods)
37
+
- [Event handling](#event-handling)
38
+
- [Removing EasyMDE from text area](#removing-easymde-from-text-area)
39
+
- [Useful methods](#useful-methods)
40
40
-[How it works](#how-it-works)
41
41
-[SimpleMDE fork](#simplemde-fork)
42
42
-[Hacking EasyMDE](#hacking-easymde)
@@ -120,7 +120,10 @@ easyMDE.value('New input for **EasyMDE**');
120
120
-**autosave**: *Saves the text that's being written and will load it back in the future. It will forget the text when the form it's contained in is submitted.*
121
121
-**enabled**: If set to `true`, saves the text automatically. Defaults to `false`.
122
122
-**delay**: Delay between saves, in milliseconds. Defaults to `10000` (10s).
123
+
-**submit_delay**: Delay before assuming that submit of the form failed and saving the text, in milliseconds. Defaults to `autosave.delay` or `10000` (10s).
123
124
-**uniqueId**: You must set a unique string identifier so that EasyMDE can autosave. Something that separates this from other instances of EasyMDE elsewhere on your website.
125
+
-**timeFormat**: Set DateTimeFormat. More information see [DateTimeFormat instances](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat). Default `locale: en-US, format: hour:minute`.
126
+
-**text**: Set text for autosave.
124
127
-**blockStyles**: Customize how certain buttons that style blocks of text behave.
125
128
-**bold**: Can be set to `**` or `__`. Defaults to `**`.
126
129
-**code**: Can be set to ```` ``` ```` or `~~~`. Defaults to ```` ``` ````.
@@ -137,6 +140,7 @@ easyMDE.value('New input for **EasyMDE**');
137
140
- table
138
141
-**lineWrapping**: If set to `false`, disable line wrapping. Defaults to `true`.
139
142
-**minHeight**: Sets the minimum height for the composition area, before it starts auto-growing. Should be a string containing a valid CSS value like `"500px"`. Defaults to `"300px"`.
143
+
-**maxHeight**: Sets fixed height for the composition area. `minHeight` option will be ignored. Should be a string containing a valid CSS value like `"500px"`. Defaults to `undefined`.
140
144
-**onToggleFullScreen**: A function that gets called when the editor's full screen mode is toggled. The function will be passed a boolean as parameter, `true` when the editor is currently going into full screen mode, or `false`.
141
145
-**parsingConfig**: Adjust settings for parsing the Markdown during editing (not previewing).
142
146
-**allowAtxHeaderWithoutSpace**: If set to `true`, will render headers without a space after the `#`. Defaults to `false`.
@@ -177,9 +181,13 @@ easyMDE.value('New input for **EasyMDE**');
177
181
-**hljs**: An injectible instance of [highlight.js](https://github.com/isagalaev/highlight.js). If you don't want to rely on the global namespace (`window.hljs`), you can provide an instance here. Defaults to `undefined`.
178
182
-**markedOptions**: Set the internal Markdown renderer's [options](https://marked.js.org/#/USING_ADVANCED.md#options). Other `renderingConfig` options will take precedence.
179
183
-**singleLineBreaks**: If set to `false`, disable parsing GFM single line breaks. Defaults to `true`.
184
+
-**sanitizerFunction**: Custom function for sanitizing the HTML output of markdown renderer.
180
185
-**shortcuts**: Keyboard shortcuts associated with this instance. Defaults to the [array of shortcuts](#keyboard-shortcuts).
181
186
-**showIcons**: An array of icon names to show. Can be used to show specific icons hidden by default without completely customizing the toolbar.
182
187
-**spellChecker**: If set to `false`, disable the spell checker. Defaults to `true`.
188
+
-**inputStyle**: `textarea` or `contenteditable`. Defaults to `textarea` for desktop and `contenteditable` for mobile. `contenteditable` option is necessary to enable nativeSpellcheck.
189
+
-**nativeSpellcheck**: If set to `false`, disable native spell checker. Defaults to `true`.
190
+
-**sideBySideFullscreen**: If set to `false`, allows side-by-side editing without going into fullscreen. Defaults to `true`.
183
191
-**status**: If set to `false`, hide the status bar. Defaults to the array of built-in status bar items.
184
192
- Optionally, you can set an array of status bar items to include, and in what order. You can even define your own custom status bar items.
185
193
-**styleSelectedText**: If set to `false`, remove the `CodeMirror-selectedtext` class from selected lines. Defaults to `true`.
0 commit comments