|
@@ -35,7 +35,7 @@ define [
|
|
|
url = ace.config._moduleUrl(args...) + "?fingerprint=#{window.aceFingerprint}"
|
|
url = ace.config._moduleUrl(args...) + "?fingerprint=#{window.aceFingerprint}"
|
|
|
return url
|
|
return url
|
|
|
|
|
|
|
|
- App.directive "aceEditor", ($timeout, $compile, $rootScope, event_tracking, localStorage, $cacheFactory, labels, graphics, preamble) ->
|
|
|
|
|
|
|
+ App.directive "aceEditor", ($timeout, $compile, $rootScope, event_tracking, localStorage, $cacheFactory, labels, graphics, preamble, $http) ->
|
|
|
monkeyPatchSearch($rootScope, $compile)
|
|
monkeyPatchSearch($rootScope, $compile)
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
@@ -97,7 +97,7 @@ define [
|
|
|
|
|
|
|
|
if scope.spellCheck # only enable spellcheck when explicitly required
|
|
if scope.spellCheck # only enable spellcheck when explicitly required
|
|
|
spellCheckCache = $cacheFactory("spellCheck-#{scope.name}", {capacity: 1000})
|
|
spellCheckCache = $cacheFactory("spellCheck-#{scope.name}", {capacity: 1000})
|
|
|
- spellCheckManager = new SpellCheckManager(scope, editor, element, spellCheckCache)
|
|
|
|
|
|
|
+ spellCheckManager = new SpellCheckManager(scope, editor, element, spellCheckCache, $http)
|
|
|
undoManager = new UndoManager(scope, editor, element)
|
|
undoManager = new UndoManager(scope, editor, element)
|
|
|
highlightsManager = new HighlightsManager(scope, editor, element)
|
|
highlightsManager = new HighlightsManager(scope, editor, element)
|
|
|
cursorPositionManager = new CursorPositionManager(scope, editor, element, localStorage)
|
|
cursorPositionManager = new CursorPositionManager(scope, editor, element, localStorage)
|