mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-05-17 21:26:38 +02:00
Fix naming and style based on feedback
* forceSynch -> forceSync * change documentation description
This commit is contained in:
parent
0fb087ca38
commit
20f5b54a46
|
@ -78,7 +78,7 @@ simplemde.value("This text will appear in the editor");
|
|||
- **code** Can be set to ```` ``` ```` or `~~~`. Defaults to ```` ``` ````.
|
||||
- **italic** Can be set to `*` or `_`. Defaults to `*`.
|
||||
- **element**: The DOM element for the textarea to use. Defaults to the first textarea on the page.
|
||||
- **forceSynch**: If set to `true`, force changes made in editor to be saved back to original textarea.
|
||||
- **forceSync**: If set to `true`, force text changes made in SimpleMDE to be immediately stored in original textarea. Defaults to `false`.
|
||||
- **hideIcons**: An array of icon names to hide. Can be used to hide specific icons shown by default without completely customizing the toolbar.
|
||||
- **indentWithTabs**: If set to `false`, indent using spaces instead of tabs. Defaults to `true`.
|
||||
- **initialValue**: If set, will customize the initial value of the editor.
|
||||
|
|
2
dist/simplemde.min.js
vendored
2
dist/simplemde.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1484,7 +1484,7 @@ SimpleMDE.prototype.render = function(el) {
|
|||
placeholder: options.placeholder || el.getAttribute("placeholder") || ""
|
||||
});
|
||||
|
||||
if(options.forceSynch !== false) {
|
||||
if(options.forceSync === true) {
|
||||
var cm = this.codemirror;
|
||||
cm.on("change", function() {
|
||||
cm.save();
|
||||
|
|
Loading…
Reference in a new issue