Skip to content

Commit 316b8a5

Browse files
committed
Merge pull request sparksuite#353 from NextStepWebs/development
Development
2 parents 6eae597 + 6676411 commit 316b8a5

File tree

11 files changed

+4818
-594
lines changed

11 files changed

+4818
-594
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: node_js
22
node_js:
3+
- '6'
34
- '5'
45
- '4'
56
- '0.12'

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ Via [bower](https://www.bower.io).
2020
bower install simplemde --save
2121
```
2222

23-
Via [jsDelivr](http://www.jsdelivr.com/#!simplemde). *Please note, jsDelivr may take a few days to update to the latest release.*
23+
Via [jsDelivr](https://www.jsdelivr.com/#!simplemde). *Please note, jsDelivr may take a few days to update to the latest release.*
2424

2525
```HTML
26-
<link rel="stylesheet" href="//cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
27-
<script src="//cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
26+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
27+
<script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
2828
```
2929

3030
## Quick start
@@ -103,6 +103,7 @@ simplemde.value("This text will appear in the editor");
103103
- **spellChecker**: If set to `false`, disable the spell checker. Defaults to `true`.
104104
- **status**: If set to `false`, hide the status bar. Defaults to the array of built-in status bar items.
105105
- 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.
106+
- **styleSelectedText**: If set to `false`, remove the `CodeMirror-selectedtext` class from selected lines. Defaults to `true`.
106107
- **tabSize**: If set, customize the tab size. Defaults to `2`.
107108
- **toolbar**: If set to `false`, hide the toolbar. Defaults to the [array of icons](#toolbar-icons).
108109
- **toolbarTips**: If set to `false`, disable toolbar button tips. Defaults to `true`.
@@ -170,6 +171,7 @@ var simplemde = new SimpleMDE({
170171
el.innerHTML = ++this.keystrokes + " Keystrokes";
171172
}
172173
}], // Another optional usage, with a custom status bar item that counts keystrokes
174+
styleSelectedText: false,
173175
tabSize: 4,
174176
toolbar: false,
175177
toolbarTips: false,
@@ -225,7 +227,7 @@ var simplemde = new SimpleMDE({
225227
},
226228
{
227229
name: "custom",
228-
action: customFunction(editor){
230+
action: function customFunction(editor){
229231
// Add your own code
230232
},
231233
className: "fa fa-star",
@@ -324,6 +326,6 @@ simplemde.clearAutosavedValue(); // no returned value
324326
```
325327

326328
## How it works
327-
SimpleMDE began as an improvement of [lepture's Editor project](https://github.com/lepture/editor), but has now taken on an identity of its own. It is bundled with [CodeMirror](https://github.com/codemirror/codemirror) and depends on [Font Awesome](http://fortawesome.github.io/Font-Awesome/).
329+
SimpleMDE began as an improvement of [lepture's Editor project](https://github.com/lepture/editor), but has now taken on an identity of its own. It is bundled with [CodeMirror](https://github.com/codemirror/codemirror) and depends on [Font Awesome](http://fontawesome.io).
328330

329331
CodeMirror is the backbone of the project and parses much of the Markdown syntax as it's being written. This allows us to add styles to the Markdown that's being written. Additionally, a toolbar and status bar have been added to the top and bottom, respectively. Previews are rendered by [Marked](https://github.com/chjj/marked) using GFM.

bower.json

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
{
2-
"name": "simplemde",
3-
"version": "1.10.1",
4-
"homepage": "https://github.com/NextStepWebs/simplemde-markdown-editor",
5-
"authors": [
6-
"Wes Cossick"
7-
],
8-
"description": "A simple, beautiful, and embeddable JavaScript Markdown editor.",
9-
"main": ["dist/simplemde.min.js", "dist/simplemde.min.css"],
10-
"moduleType": [
11-
"globals"
12-
],
13-
"keywords": [
14-
"embeddable",
15-
"markdown",
16-
"editor",
17-
"javascript",
18-
"wysiwyg"
19-
],
20-
"license": "MIT",
21-
"ignore": [
22-
"node_modules",
23-
"bower_components"
24-
]
2+
"name": "simplemde",
3+
"version": "1.11.0",
4+
"homepage": "https://github.com/NextStepWebs/simplemde-markdown-editor",
5+
"authors": [
6+
"Wes Cossick <https://wescossick.com>"
7+
],
8+
"description": "A simple, beautiful, and embeddable JavaScript Markdown editor.",
9+
"main": ["src/js/simplemde.js", "src/css/simplemde.css"],
10+
"keywords": [
11+
"embeddable",
12+
"markdown",
13+
"editor",
14+
"javascript",
15+
"wysiwyg"
16+
],
17+
"license": "MIT",
18+
"ignore": [
19+
"**/.*",
20+
"node_modules",
21+
"bower_components"
22+
]
2523
}

debug/simplemde.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* simplemde v1.10.1
2+
* simplemde v1.11.0
33
* Copyright Next Step Webs, Inc.
44
* @link https://github.com/NextStepWebs/simplemde-markdown-editor
55
* @license MIT
@@ -58,7 +58,7 @@
5858
}
5959
.cm-fat-cursor .CodeMirror-cursor {
6060
width: auto;
61-
border: 0;
61+
border: 0 !important;
6262
background: #7e7;
6363
}
6464
.cm-fat-cursor div.CodeMirror-cursors {
@@ -197,6 +197,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
197197

198198
.CodeMirror-gutters {
199199
position: absolute; left: 0; top: 0;
200+
min-height: 100%;
200201
z-index: 3;
201202
}
202203
.CodeMirror-gutter {
@@ -251,6 +252,8 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
251252
position: relative;
252253
overflow: visible;
253254
-webkit-tap-highlight-color: transparent;
255+
-webkit-font-variant-ligatures: none;
256+
font-variant-ligatures: none;
254257
}
255258
.CodeMirror-wrap pre {
256259
word-wrap: break-word;
@@ -669,5 +672,5 @@ span.CodeMirror-selectedtext { background: none; }
669672
opacity: .5;
670673
}
671674
.CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word) {
672-
background: rgba(255, 0, 0, .15);
675+
background: rgba(255, 0, 0, .15);
673676
}

0 commit comments

Comments
 (0)