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';
$scope.formData = {};

View File

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