Fixed issues with EditorManager.createEditor method