mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-04 01:42:42 +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: selectionStart.line, ch: 0 },
|
||||||
{ line: selectionEnd.line, ch: this.codeMirror.getLine(selectionEnd.line).length });
|
{ line: selectionEnd.line, ch: this.codeMirror.getLine(selectionEnd.line).length });
|
||||||
console.log(selectionStart, selectionEnd, selection);
|
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