mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-02 23:54:28 -06:00
Rename syncPreviewSideScroll to syncSideBySidePreviewScroll
This commit is contained in:
parent
004cf8e731
commit
5d1648a510
@ -107,10 +107,10 @@ simplemde.value("This text will appear in the editor");
|
|||||||
- **status**: If set to `false`, hide the status bar. Defaults to the array of built-in status bar items.
|
- **status**: If set to `false`, hide the status bar. Defaults to the array of built-in status bar items.
|
||||||
- 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.
|
- 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.
|
||||||
- **styleSelectedText**: If set to `false`, remove the `CodeMirror-selectedtext` class from selected lines. Defaults to `true`.
|
- **styleSelectedText**: If set to `false`, remove the `CodeMirror-selectedtext` class from selected lines. Defaults to `true`.
|
||||||
|
- **syncSideBySidePreviewScroll**: If set to `false`, disable syncing scroll in side by side mode. Defaults to `true`.
|
||||||
- **tabSize**: If set, customize the tab size. Defaults to `2`.
|
- **tabSize**: If set, customize the tab size. Defaults to `2`.
|
||||||
- **toolbar**: If set to `false`, hide the toolbar. Defaults to the [array of icons](#toolbar-icons).
|
- **toolbar**: If set to `false`, hide the toolbar. Defaults to the [array of icons](#toolbar-icons).
|
||||||
- **toolbarTips**: If set to `false`, disable toolbar button tips. Defaults to `true`.
|
- **toolbarTips**: If set to `false`, disable toolbar button tips. Defaults to `true`.
|
||||||
- **syncPreviewSideScroll**: If set to `false`, disable syncing scroll in side by side mode. Defaults to `true`.
|
|
||||||
|
|
||||||
```JavaScript
|
```JavaScript
|
||||||
// Most options demonstrate the non-default behavior
|
// Most options demonstrate the non-default behavior
|
||||||
|
@ -1667,7 +1667,7 @@ SimpleMDE.prototype.createSideBySide = function() {
|
|||||||
wrapper.parentNode.insertBefore(preview, wrapper.nextSibling);
|
wrapper.parentNode.insertBefore(preview, wrapper.nextSibling);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.options.syncPreviewSideScroll === false) return preview;
|
if(this.options.syncSideBySidePreviewScroll === false) return preview;
|
||||||
// Syncs scroll editor -> preview
|
// Syncs scroll editor -> preview
|
||||||
var cScroll = false;
|
var cScroll = false;
|
||||||
var pScroll = false;
|
var pScroll = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user