mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge branch 'master' of https://github.com/sharelatex/web-sharelatex
This commit is contained in:
commit
e8be248b29
2 changed files with 3 additions and 2 deletions
|
@ -21,7 +21,7 @@ define [
|
||||||
highlight.row, highlight.column,
|
highlight.row, highlight.column,
|
||||||
highlight.row, highlight.column + highlight.word.length
|
highlight.row, highlight.column + highlight.word.length
|
||||||
)
|
)
|
||||||
highlight.markerId = @editor.getSession().addMarker range, "spelling-highlight"
|
highlight.markerId = @editor.getSession().addMarker range, "spelling-highlight", null, true
|
||||||
@highlights.rows[highlight.row] ||= []
|
@highlights.rows[highlight.row] ||= []
|
||||||
@highlights.rows[highlight.row].push highlight
|
@highlights.rows[highlight.row].push highlight
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,8 @@ define [
|
||||||
@openContextMenu(e.domEvent)
|
@openContextMenu(e.domEvent)
|
||||||
|
|
||||||
$(document).on "click", (e) =>
|
$(document).on "click", (e) =>
|
||||||
@closeContextMenu(e)
|
if e.which != 3 # Ignore if this was a right click
|
||||||
|
@closeContextMenu(e)
|
||||||
return true
|
return true
|
||||||
|
|
||||||
@$scope.replaceWord = (highlight, suggestion) =>
|
@$scope.replaceWord = (highlight, suggestion) =>
|
||||||
|
|
Loading…
Reference in a new issue