mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-05-25 01:52:32 +02:00
Fix bug that broke bold and italics
This commit is contained in:
parent
da448e733e
commit
c3b3300bcb
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) {
|
||||
if (/editor-preview-active/.test(cm.getWrapperElement().lastChild.className))
|
||||
if (/editor-preview-active/.test(editor.codemirror.getWrapperElement().lastChild.className))
|
||||
return;
|
||||
|
||||
end_chars = (typeof end_chars === 'undefined') ? start_chars : end_chars;
|
||||
|
|
Loading…
Reference in a new issue