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:
@@ -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');
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user