From 83722ff7b276a03b9eeaee171b598a6be9e5b7df Mon Sep 17 00:00:00 2001 From: Wes Cossick Date: Fri, 26 Jun 2015 15:39:33 -0500 Subject: [PATCH] Update to CodeMirror 5.4.1 --- README.md | 2 +- source files/codemirror/codemirror.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 97838a4..4fc4fa9 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ simplemde.value(); - **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`. - - 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`. - **autofocus**: If set to `true`, autofocuses the editor. Defaults to `false`. - **lineWrapping**: If set to `false`, disable line wrapping. Defaults to `true`. diff --git a/source files/codemirror/codemirror.js b/source files/codemirror/codemirror.js index 9b4f4d7..381547d 100644 --- a/source files/codemirror/codemirror.js +++ b/source files/codemirror/codemirror.js @@ -6791,7 +6791,7 @@ // is needed on Webkit to be able to get line-level bounding // rectangles for it (in measureChar). 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, splitSpaces: (ie || webkit) && cm.getOption("lineWrapping")}; lineView.measure = {}; @@ -8729,7 +8729,7 @@ // THE END - CodeMirror.version = "5.3.1"; + CodeMirror.version = "5.4.1"; return CodeMirror; }); \ No newline at end of file