mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-18 05:42:48 +00:00
Linting?
This commit is contained in:
@@ -47,7 +47,7 @@ const CodeEditor = createClass({
|
|||||||
const selection = this.codeMirror.getSelection();
|
const selection = this.codeMirror.getSelection();
|
||||||
if(selection.length === 0){
|
if(selection.length === 0){
|
||||||
this.codeMirror.replaceSelection(`**${selection}**`, 'around');
|
this.codeMirror.replaceSelection(`**${selection}**`, 'around');
|
||||||
let cursor = this.codeMirror.getCursor();
|
const cursor = this.codeMirror.getCursor();
|
||||||
this.codeMirror.setCursor({ line: cursor.line, ch: cursor.ch - 2 });
|
this.codeMirror.setCursor({ line: cursor.line, ch: cursor.ch - 2 });
|
||||||
} else {
|
} else {
|
||||||
this.codeMirror.replaceSelection(`**${selection}**`, 'around');
|
this.codeMirror.replaceSelection(`**${selection}**`, 'around');
|
||||||
@@ -58,7 +58,7 @@ const CodeEditor = createClass({
|
|||||||
const selection = this.codeMirror.getSelection();
|
const selection = this.codeMirror.getSelection();
|
||||||
if(selection.length === 0){
|
if(selection.length === 0){
|
||||||
this.codeMirror.replaceSelection(`*${selection}*`, 'around');
|
this.codeMirror.replaceSelection(`*${selection}*`, 'around');
|
||||||
let cursor = this.codeMirror.getCursor();
|
const cursor = this.codeMirror.getCursor();
|
||||||
this.codeMirror.setCursor({ line: cursor.line, ch: cursor.ch - 1 });
|
this.codeMirror.setCursor({ line: cursor.line, ch: cursor.ch - 1 });
|
||||||
} else {
|
} else {
|
||||||
this.codeMirror.replaceSelection(`*${selection}*`, 'around');
|
this.codeMirror.replaceSelection(`*${selection}*`, 'around');
|
||||||
|
|||||||
Reference in New Issue
Block a user