mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 04:33:25 +00:00
Replace $isEmpty check
This commit is contained in:
parent
72fc630e81
commit
b7db72e574
1 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ define [
|
|||
bindKey: win: "Ctrl-B", mac: "Command-B"
|
||||
exec: (editor) ->
|
||||
selection = editor.getSelection()
|
||||
if selection.$isEmpty
|
||||
if selection.isEmpty()
|
||||
editor.insert("\\textbf{}")
|
||||
editor.navigateLeft(1)
|
||||
else
|
||||
|
@ -98,7 +98,7 @@ define [
|
|||
bindKey: win: "Ctrl-I", mac: "Command-I"
|
||||
exec: (editor) ->
|
||||
selection = editor.getSelection()
|
||||
if selection.$isEmpty
|
||||
if selection.isEmpty()
|
||||
editor.insert("\\textit{}")
|
||||
editor.navigateLeft(1)
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue