|
@@ -1,7 +1,9 @@
|
|
|
define [
|
|
define [
|
|
|
"ide/editor/Document"
|
|
"ide/editor/Document"
|
|
|
"ide/editor/directives/aceEditor"
|
|
"ide/editor/directives/aceEditor"
|
|
|
|
|
+ "ide/editor/directives/cmEditor"
|
|
|
"ide/editor/controllers/SavingNotificationController"
|
|
"ide/editor/controllers/SavingNotificationController"
|
|
|
|
|
+ "ide/editor/controllers/EditorToolbarController"
|
|
|
], (Document) ->
|
|
], (Document) ->
|
|
|
class EditorManager
|
|
class EditorManager
|
|
|
constructor: (@ide, @$scope) ->
|
|
constructor: (@ide, @$scope) ->
|
|
@@ -12,6 +14,7 @@ define [
|
|
|
opening: true
|
|
opening: true
|
|
|
trackChanges: false
|
|
trackChanges: false
|
|
|
wantTrackChanges: false
|
|
wantTrackChanges: false
|
|
|
|
|
+ richText: false
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@$scope.$on "entity:selected", (event, entity) =>
|
|
@$scope.$on "entity:selected", (event, entity) =>
|
|
@@ -186,3 +189,7 @@ define [
|
|
|
@$scope.editor.trackChanges = want
|
|
@$scope.editor.trackChanges = want
|
|
|
else
|
|
else
|
|
|
@_syncTimeout = setTimeout tryToggle, 100
|
|
@_syncTimeout = setTimeout tryToggle, 100
|
|
|
|
|
+
|
|
|
|
|
+ toggleRichText: () ->
|
|
|
|
|
+ @$scope.editor.richText = !@$scope.editor.richText
|
|
|
|
|
+
|