add editor fix

This commit is contained in:
Mo Bitar
2017-04-15 11:20:23 -05:00
parent 5a98d44681
commit ee13af5726
2 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ class EditorMenu {
}; };
} }
controller($scope, modelManager, editorManager, syncManager) { controller($scope, editorManager) {
'ngInject'; 'ngInject';
$scope.formData = {}; $scope.formData = {};

View File

@@ -76,8 +76,8 @@ class EditorManager {
} }
addNewEditorFromURL(url) { addNewEditorFromURL(url) {
var name = getParameterByName("name", url); var name = this.getParameterByName("name", url);
var editor = modelManager.createItem({ var editor = this.modelManager.createItem({
content_type: this.editorType, content_type: this.editorType,
url: url, url: url,
name: name name: name