0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 22:52:40 +00:00

update to detect if an unordered list or not.

This commit is contained in:
Gazook89
2021-09-27 21:34:09 -05:00
parent cb0f5217fe
commit 41609f90ea

View File

@@ -111,6 +111,11 @@ const CodeEditor = createClass({
{ line: selectionStart.line, ch: 0 },
{ line: selectionEnd.line, ch: this.codeMirror.getLine(selectionEnd.line).length });
console.log(selectionStart, selectionEnd, selection);
if(isList.test(this.codeMirror.getSelection()) == true){
console.log('is list');
} else {
console.log('is not a list');
}
},