define("ng.cla.core.html_editor",["cla_angular"],function(e){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/components/",t(t.s="./assets/js/angular/cla/html_editor/html_editor.directive.js")}({"./assets/js/angular/cla/html_editor/html_editor.directive.js":function(e,t,n){(function(e){var o,r;o=[n(0),n("./assets/js/angular/cla/html_editor/html_editor.html")],void 0!==(r=function(e,t){function n(n){return{restrict:"E",require:"^ngModel",templateUrl:t,scope:{ngModel:"=",control:"=",application:"@?"},link:function(t,o,r,i){void 0===window.CKEDITOR&&$("head").append('<script src="/lib/ckeditor/ckeditor.js"><\/script><script type="text/javascript" src="/lib/ckfinder/ckfinder.js"><\/script>\n<script type="text/javascript" src="/lib/ckeditor/adapters/jquery.js"><\/script>\n<script type="text/javascript">\n  jQuery(function(){\n    CKEDITOR.disableAutoInline = true;\n  });\n<\/script>'),t.internalControl=t.control||{},t.application=t.application||"pages_text_component",t.changeFunc=function(){var t=i.editorObj.getData();e.element(o).find("textarea").html(t),i.$setViewValue(t)},t.internalControl.onOpen=function(){var r=e.element(o).find("textarea");r.on("do-sync",t.changeFunc),i.popupRefCount=0,i.editorObj=i.ckeditor=window.CKEDITOR.replace(r[0],{customConfig:"/intranet/common/ckeditor/editor_config.php?application="+t.application}),i.editorObj.on("instanceReady",function(){i.editorObj.on("change",t.changeFunc),i.editorObj.on("key",t.changeFunc),i.editorObj.on("dataReady",t.changeFunc),i.editorObj.on("paste",t.changeFunc),i.editorObj.on("pasteState",t.changeFunc),i.editorObj.on("blur",t.changeFunc),i.editorObj.on("selectionChange",t.changeFunc)}),i.editorObj.on("dialogShow",function(){1===++i.popupRefCount&&(window.cla.pagesEdit.popoverAutoClose=!1)}),i.editorObj.on("dialogHide",function(){n(function(){0===--i.popupRefCount&&(window.cla.pagesEdit.popoverAutoClose=!0)},0)})},t.internalControl.onClose=function(){t.changeFunc(),i.editorObj.removeAllListeners(),CKEDITOR.instances[i.editorObj.name].destroy(!0),i.editorObj.container.remove(),i.editorObj=null}}}}try{var o=e.module("cla.core.html_editor")}catch(t){var o=e.module("cla.core.html_editor",[])}o.directive("claHtmlEditor",n),n.$inject=["$timeout"]}.apply(t,o))&&(e.exports=r)}).call(t,n("./node_modules/webpack/buildin/module.js")(e))},"./assets/js/angular/cla/html_editor/html_editor.html":function(e,t){var n="/assets/js/angular/cla/html_editor/html_editor.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'<textarea ng-model="ngModel"></textarea>')}]),e.exports=n},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},0:function(t,n){t.exports=e}})});