From f41b0ff4b5380b24f47d7227942f5b1ca0cb3c8f Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 10 Dec 2013 14:15:23 +1100 Subject: [PATCH] removes some debug logging --- .../src/common/services/tinymce.service.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js b/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js index 01d02c9983..1a6807724a 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js @@ -292,8 +292,6 @@ function tinyMceService(dialogService, $log, imageHelper, $http, $timeout, macro /** helper method to select the macro element */ function selectMacroElement(macroElement) { - $log.log("Selecting macro element"); - // move selection to top element to ensure we can't edit this editor.selection.select(macroElement); @@ -336,8 +334,6 @@ function tinyMceService(dialogService, $log, imageHelper, $http, $timeout, macro //set the flag isOnMacroElement = true; - $log.log("isOnMacroElement = " + isOnMacroElement); - //re-add the event listener editor.on('NodeChange', onNodeChanged); } @@ -357,19 +353,6 @@ function tinyMceService(dialogService, $log, imageHelper, $http, $timeout, macro }); - //editor.on('BeforeSetContent', function (e, o) { - // //$log.log('BeforeSetContent event', e); - - // $(e.content.select(".umb-macro-holder.mceNonEditable")).each(function () { - // loadMacroContent($(this)); - // }); - - // //get all macro divs and load their content - // $(editor.dom.select(".umb-macro-holder.mceNonEditable")).each(function () { - // loadMacroContent($(this)); - // }); - //}); - /** This prevents any other commands from executing when the current element is the macro so the content cannot be edited */ editor.on('BeforeExecCommand', function (o) { if (isOnMacroElement) {