From e3754fb62f38d96be737340eff5372f9f39504ba Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Tue, 1 May 2018 15:33:14 +0200 Subject: [PATCH] remove indentation code from the editorService --- .../src/common/services/editor.service.js | 43 ------------------- 1 file changed, 43 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/services/editor.service.js b/src/Umbraco.Web.UI.Client/src/common/services/editor.service.js index 08e3f5df40..864a403822 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/editor.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/editor.service.js @@ -23,8 +23,6 @@ editors: editors, editor: editor }; - - // setIndent(); eventsService.emit("appState.editors.open", args); } @@ -40,49 +38,8 @@ editor: closedEditor }; - console.log("ARGS", args); - - // setIndent(); - eventsService.emit("appState.editors.close", args); } - - function setIndent() { - - var indentSize = 80; - var numberOfCollapsed = editors.length; - - angular.forEach(editors, function(editor, index){ - - var lastOpened = false; - var style = {}; - - // clear editor settings - editor.style = null; - editor.showOverlay = false; - - if(index + 1 === editors.length) { - lastOpened = true; - } - - // show black overlay on all editors but the latest - if(lastOpened === false) { - editor.showOverlay = true; - } - - // if it's a small editor we don't want it to indent when it is the last opened - // beacuse it doesn't take up the full screen - if(editor.size === "small" && lastOpened === true) { - return; - } - - // set indent - style.left = (index + 1) * indentSize + "px"; - editor.style = style; - - }); - - } function contentEditor(editor) { editor.view = "views/content/edit.html",