mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-27 09:50:10 +02:00
Update to CodeMirror 5.4.1
This commit is contained in:
parent
f0a2255870
commit
83722ff7b2
|
@ -53,7 +53,7 @@ simplemde.value();
|
||||||
|
|
||||||
- **element**: The DOM element for the textarea to use. Defaults to the first textarea on the page.
|
- **element**: The DOM element for the textarea to use. Defaults to the first textarea on the page.
|
||||||
- **status**: If set to `false`, hide the status bar. Defaults to `true`.
|
- **status**: If set to `false`, hide the status bar. Defaults to `true`.
|
||||||
- Optionally, you can set an array of status bar elements to include
|
- Optionally, you can set an array of status bar elements to include.
|
||||||
- **toolbar**: If set to `false`, hide the toolbar. Defaults to `true`.
|
- **toolbar**: If set to `false`, hide the toolbar. Defaults to `true`.
|
||||||
- **autofocus**: If set to `true`, autofocuses the editor. Defaults to `false`.
|
- **autofocus**: If set to `true`, autofocuses the editor. Defaults to `false`.
|
||||||
- **lineWrapping**: If set to `false`, disable line wrapping. Defaults to `true`.
|
- **lineWrapping**: If set to `false`, disable line wrapping. Defaults to `true`.
|
||||||
|
|
|
@ -6791,7 +6791,7 @@
|
||||||
// is needed on Webkit to be able to get line-level bounding
|
// is needed on Webkit to be able to get line-level bounding
|
||||||
// rectangles for it (in measureChar).
|
// rectangles for it (in measureChar).
|
||||||
var content = elt("span", null, null, webkit ? "padding-right: .1px" : null);
|
var content = elt("span", null, null, webkit ? "padding-right: .1px" : null);
|
||||||
var builder = {pre: elt("pre", [content]), content: content,
|
var builder = {pre: elt("pre", [content], "CodeMirror-line"), content: content,
|
||||||
col: 0, pos: 0, cm: cm,
|
col: 0, pos: 0, cm: cm,
|
||||||
splitSpaces: (ie || webkit) && cm.getOption("lineWrapping")};
|
splitSpaces: (ie || webkit) && cm.getOption("lineWrapping")};
|
||||||
lineView.measure = {};
|
lineView.measure = {};
|
||||||
|
@ -8729,7 +8729,7 @@
|
||||||
|
|
||||||
// THE END
|
// THE END
|
||||||
|
|
||||||
CodeMirror.version = "5.3.1";
|
CodeMirror.version = "5.4.1";
|
||||||
|
|
||||||
return CodeMirror;
|
return CodeMirror;
|
||||||
});
|
});
|
Loading…
Reference in a new issue