Просмотр исходного кода

Merge branch 'master' of https://github.com/sharelatex/web-sharelatex

Henry Oswald 12 лет назад
Родитель
Сommit
e8be248b29

+ 1 - 1
services/web/public/coffee/ide/editor/directives/aceEditor/spell-check/HighlightedWordManager.coffee

@@ -21,7 +21,7 @@ define [
 				highlight.row, highlight.column,
 				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].push highlight
 

+ 2 - 1
services/web/public/coffee/ide/editor/directives/aceEditor/spell-check/SpellCheckManager.coffee

@@ -29,7 +29,8 @@ define [
 				@openContextMenu(e.domEvent)
 
 			$(document).on "click", (e) =>
-				@closeContextMenu(e)
+				if e.which != 3 # Ignore if this was a right click
+					@closeContextMenu(e)
 				return true
 
 			@$scope.replaceWord = (highlight, suggestion) =>