mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-03 06:22:20 +02:00
Add getState() support for code (and yes, CodeMirror intenrally labels it as "comment")
This commit is contained in:
parent
1c369a3cc9
commit
ab83c5a5f6
|
@ -88,6 +88,8 @@ function getState(cm, pos) {
|
|||
ret.quote = true;
|
||||
} else if(data === 'strikethrough') {
|
||||
ret.strikethrough = true;
|
||||
} else if(data === 'comment') {
|
||||
ret.code = true;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue