mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-06 01:24:28 -06:00
Merge pull request #7 from NextStepWebs/development
Fix bug that broke bold and italics
This commit is contained in:
commit
31e71766de
@ -9,8 +9,8 @@ A drop-in JavaScript textarea replacement for writing beautiful and understandab
|
|||||||
Available on [jsDelivr](http://www.jsdelivr.com/about.php)
|
Available on [jsDelivr](http://www.jsdelivr.com/about.php)
|
||||||
|
|
||||||
```
|
```
|
||||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/simplemde/1.1.3/simplemde.min.css">
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/simplemde/1.1.5/simplemde.min.css">
|
||||||
<script src="//cdn.jsdelivr.net/simplemde/1.1.3/simplemde.min.js"></script>
|
<script src="//cdn.jsdelivr.net/simplemde/1.1.5/simplemde.min.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
And then load SimpleMDE on the first textarea on a page
|
And then load SimpleMDE on the first textarea on a page
|
||||||
|
6
simplemde.min.js
vendored
6
simplemde.min.js
vendored
File diff suppressed because one or more lines are too long
@ -313,7 +313,7 @@ function _toggleLine(cm, name) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function _toggleBlock(editor, type, start_chars, end_chars) {
|
function _toggleBlock(editor, type, start_chars, end_chars) {
|
||||||
if (/editor-preview-active/.test(cm.getWrapperElement().lastChild.className))
|
if (/editor-preview-active/.test(editor.codemirror.getWrapperElement().lastChild.className))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
end_chars = (typeof end_chars === 'undefined') ? start_chars : end_chars;
|
end_chars = (typeof end_chars === 'undefined') ? start_chars : end_chars;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user