2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-23 09:54:28 -06:00

Add getState() support for code (and yes, CodeMirror intenrally labels it as "comment")

This commit is contained in:
Dave Brondsema 2015-09-14 18:16:58 +00:00
parent 1c369a3cc9
commit ab83c5a5f6

View File

@ -88,6 +88,8 @@ function getState(cm, pos) {
ret.quote = true; ret.quote = true;
} else if(data === 'strikethrough') { } else if(data === 'strikethrough') {
ret.strikethrough = true; ret.strikethrough = true;
} else if(data === 'comment') {
ret.code = true;
} }
} }
return ret; return ret;