diff --git a/docs/index.html b/docs/index.html index 1fbe925b..0a4f364b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -
")},n.prototype.removeQuote=function(){document.execCommand("formatBlock",!1,"div")},n.prototype.createLink=function(){var n=document.getSelection();if("A"===n.anchorNode.parentElement.tagName){var l=prompt("Enter URL",n.anchorNode.parentElement.getAttribute("href"));l&&document.execCommand("createLink",!1,l)}else if("None"===n.type)this.createMessage("No selection made");else{var l=prompt("Enter URL","http://");l&&document.execCommand("createLink",!1,l)}},n.prototype.insertImage=function(){var n=prompt("Enter URL","http://");if(n){document.execCommand("insertImage",!1,n)||this.createMessage("Invalid URL")}},n.prototype.createMessage=function(n){var l=this;this.ngxMessage=n,setTimeout(function(){l.clearMessage()},5e3)},n.prototype.clearMessage=function(){this.ngxMessage=void 0},n.prototype.onFocus=function(){this.enableToolbar=!0},n.prototype.onDocumentClick=function(n){this._element.nativeElement.contains(n.target)?this.enableToolbar=!0:this.enableToolbar=!1},n.prototype.canEnableToolbarOptions=function(n){return u(n,this.config.toolbar)},n.prototype.resizeTextArea=function(n){var l=parseInt(this.height,10);l+=n,this.height=l+"px",this.textArea.nativeElement.style.height=this.height},n.prototype.canResize=function(){return"basic"===this.resizer&&"vertical"},n.prototype.ngOnInit=function(){this.textArea.nativeElement.innerHTML=this.html||"",this.height=this.height||this.textArea.nativeElement.offsetHeight,document.execCommand("enableObjectResizing",!0,!0)},n.ctorParameters=function(){return[{type:F.k}]},n}(),Z=function(){function n(n){this._editorComponent=n,this.oldY=0,this.grabber=!1}return n.prototype.onMouseMove=function(n){this.grabber&&(this._editorComponent.resizeTextArea(n.clientY-this.oldY),this.oldY=n.clientY)},n.prototype.onMouseUp=function(n){this.grabber=!1},n.prototype.onResize=function(n,l){this.grabber=!0,this.oldY=n.clientY,n.preventDefault()},n.ctorParameters=function(){return[{type:X}]},n}(),V=[J],$=F._1({encapsulation:0,styles:V,data:{}}),nn=(F.Z("app-ngx-grippie",Z,o,{},{},[]),t("qbdv")),ln=[G],tn=F._1({encapsulation:0,styles:ln,data:{}}),un=(F.Z("app-ngx-editor",X,K,{editable:"editable",spellcheck:"spellcheck",placeholder:"placeholder",translate:"translate",height:"height",minHeight:"minHeight",width:"width",minWidth:"minWidth",toolbar:"toolbar",resizer:"resizer",config:"config",html:"html"},{htmlChange:"htmlChange"},[]),[B]),en=F._1({encapsulation:0,styles:un,data:{}}),on=F.Z("app-root",W,H,{},{},[]),rn=t("fc+i"),cn=function(){function n(){}return n}(),an=F._0(A,[W],function(n){return F._13([F._14(512,F.i,F.W,[[8,[on]],[3,F.i],F.x]),F._14(5120,F.v,F._12,[[3,F.v]]),F._14(4608,nn.e,nn.d,[F.v]),F._14(4608,F.h,F.h,[]),F._14(5120,F.a,F._5,[]),F._14(5120,F.t,F._10,[]),F._14(5120,F.u,F._11,[]),F._14(4608,rn.b,rn.s,[nn.b]),F._14(6144,F.H,null,[rn.b]),F._14(4608,rn.e,rn.f,[]),F._14(5120,rn.c,function(n,l,t,u){return[new rn.k(n),new rn.o(l),new rn.n(t,u)]},[nn.b,nn.b,nn.b,rn.e]),F._14(4608,rn.d,rn.d,[rn.c,F.z]),F._14(135680,rn.m,rn.m,[nn.b]),F._14(4608,rn.l,rn.l,[rn.d,rn.m]),F._14(6144,F.F,null,[rn.l]),F._14(6144,rn.p,null,[rn.m]),F._14(4608,F.L,F.L,[F.z]),F._14(4608,rn.g,rn.g,[nn.b]),F._14(4608,rn.i,rn.i,[nn.b]),F._14(4608,q.h,q.m,[nn.b,F.B,q.k]),F._14(4608,q.n,q.n,[q.h,q.l]),F._14(5120,q.a,function(n){return[n]},[q.n]),F._14(4608,q.j,q.j,[]),F._14(6144,q.i,null,[q.j]),F._14(4608,q.g,q.g,[q.i]),F._14(6144,q.b,null,[q.g]),F._14(5120,q.f,q.o,[q.b,[2,q.a]]),F._14(4608,q.c,q.c,[q.f]),F._14(512,nn.a,nn.a,[]),F._14(1024,F.l,rn.q,[]),F._14(1024,F.b,function(n,l){return[rn.r(n,l)]},[[2,rn.h],[2,F.y]]),F._14(512,F.c,F.c,[[2,F.b]]),F._14(131584,F._3,F._3,[F.z,F.X,F.r,F.l,F.i,F.c]),F._14(2048,F.e,null,[F._3]),F._14(512,F.d,F.d,[F.e]),F._14(512,rn.a,rn.a,[[3,rn.a]]),F._14(512,cn,cn,[]),F._14(512,q.e,q.e,[]),F._14(512,q.d,q.d,[]),F._14(512,A,A,[]),F._14(256,q.k,"XSRF-TOKEN",[]),F._14(256,q.l,"X-XSRF-TOKEN",[])])});U.production&&Object(F.R)(),Object(rn.j)().bootstrapModuleFactory(an).catch(function(n){return console.log(n)})},gFIY:function(n,l){function t(n){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+n+"'.")})}t.keys=function(){return[]},t.resolve=t,n.exports=t,t.id="gFIY"}},[0]); \ No newline at end of file +webpackJsonp([1],{0:function(n,l,t){n.exports=t("cDNt")},cDNt:function(n,l,t){"use strict";function u(n,l){return!!n&&(0===l.length||l.find(function(l){return l.includes(n)}))}function e(n){return F._20(0,[(n()(),F._4(0,0,null,null,9,"div",[["class","ngx-editor-grippie"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,6,":svg:svg",[[":xmlns:xlink","http://www.w3.org/1999/xlink"],["height","5"],["style","isolation:isolate"],["viewBox","651.6 235 26 5"],["width","26"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(4,0,null,null,3,":svg:g",[["id","sprites"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(6,0,null,null,0,":svg:path",[["d"," M 651.6 235 L 653.6 235 L 653.6 237 L 651.6 237 M 654.6 238 L 656.6 238 L 656.6 240 L 654.6 240 M 660.6 238 L 662.6 238 L 662.6 240 L 660.6 240 M 666.6 238 L 668.6 238 L 668.6 240 L 666.6 240 M 672.6 238 L 674.6 238 L 674.6 240 L 672.6 240 M 657.6 235 L 659.6 235 L 659.6 237 L 657.6 237 M 663.6 235 L 665.6 235 L 665.6 237 L 663.6 237 M 669.6 235 L 671.6 235 L 671.6 237 L 669.6 237 M 675.6 235 L 677.6 235 L 677.6 237 L 675.6 237"],["fill","rgb(147,153,159)"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._19(-1,null,["\n "])),(n()(),F._19(-1,null,["\n"]))],null,null)}function o(n){return F._20(0,[(n()(),F._4(0,0,null,null,1,"app-ngx-grippie",[],null,[["document","mousemove"],["document","mouseup"],[null,"mousedown"]],function(n,l,t){var u=!0;if("document:mousemove"===l){u=!1!==F._15(n,1).onMouseMove(t)&&u}if("document:mouseup"===l){u=!1!==F._15(n,1).onMouseUp(t)&&u}if("mousedown"===l){u=!1!==F._15(n,1).onResize(t)&&u}return u},e,$)),F._2(1,49152,null,0,Z,[X],null,null)],null,null)}function i(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Bold"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("bold")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-bold"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function r(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Italic"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("italic")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-italic"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function c(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Underline"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("underline")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-underline"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function a(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Strikethrough"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("strikeThrough")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-strikethrough"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function s(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Superscript"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("superscript")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-superscript"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function d(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Subscript"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("subscript")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-subscript"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function _(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Justify Left"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("justifyLeft")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-align-left"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function f(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Justify Center"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("justifyCenter")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-align-center"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function g(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Justify Right"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("justifyRight")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-align-right"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function b(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Justify"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("justifyFull")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-align-justify"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function p(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Indent"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("indent")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-indent"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function m(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Outdent"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("outdent")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-outdent"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function h(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Cut"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("cut")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-scissors"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function x(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Copy"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("copy")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-files-o"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function k(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Delete"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("delete")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-trash"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function C(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Clear Formatting"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("removeFormat")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-eraser"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function O(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Undo"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("undo")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-undo"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function v(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Redo"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("redo")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-repeat"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function M(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Paragraph"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("insertParagraph")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-paragraph"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function I(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Blockquote"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.blockQuote()&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-quote-left"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function P(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Remove Blockquote"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.removeQuote()&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-quote-right"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function T(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Horizontal Line"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("insertHorizontalRule")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-minus"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function y(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Unodered List"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("insertUnorderedList")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-list-ul"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function L(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Ordered List"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("insertOrderedList")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-list-ol"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function E(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Insert/Edit Link"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.createLink()&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-link"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function Y(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Unlink"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.executeCommand("unlink")&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-chain-broken"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function S(n){return F._20(0,[(n()(),F._4(0,0,null,null,3,"button",[["class","ngx-editor-button"],["title","Insert Image"]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.insertImage()&&u}return u},null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-picture-o"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,0,0,!l.component.enableToolbar)})}function N(n){return F._20(0,[(n()(),F._4(0,0,null,null,1,"div",[["class","ngx-editor-message"]],null,[[null,"dblclick"]],function(n,l,t){var u=!0,e=n.component;if("dblclick"===l){u=!1!==e.clearMessage()&&u}return u},null,null)),(n()(),F._19(1,null,["\n ","\n "]))],null,function(n,l){n(l,1,0,l.component.ngxMessage)})}function j(n){return F._20(0,[(n()(),F._4(0,0,null,null,1,"app-ngx-grippie",[],null,[["document","mousemove"],["document","mouseup"],[null,"mousedown"]],function(n,l,t){var u=!0;if("document:mousemove"===l){u=!1!==F._15(n,1).onMouseMove(t)&&u}if("document:mouseup"===l){u=!1!==F._15(n,1).onMouseUp(t)&&u}if("mousedown"===l){u=!1!==F._15(n,1).onResize(t)&&u}return u},e,$)),F._2(1,49152,null,0,Z,[X],null,null)],null,null)}function w(n){return F._20(0,[F._17(402653184,1,{textArea:0}),(n()(),F._4(1,0,null,null,111,"div",[["class","ngx-editor"],["id","ngxEditor"]],[[4,"width",null],[4,"minWidth",null]],null,null,null,null)),(n()(),F._19(-1,null,["\n\n "])),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(4,0,null,null,97,"div",[["class","ngx-toolbar"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(6,0,null,null,19,"div",[["class","ngx-toolbar-set"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,i)),F._2(9,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,r)),F._2(12,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,c)),F._2(15,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,a)),F._2(18,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,s)),F._2(21,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,d)),F._2(24,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(27,0,null,null,19,"div",[["class","ngx-toolbar-set"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,_)),F._2(30,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,f)),F._2(33,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,g)),F._2(36,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,b)),F._2(39,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,p)),F._2(42,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,m)),F._2(45,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(48,0,null,null,19,"div",[["class","ngx-toolbar-set"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,h)),F._2(51,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,x)),F._2(54,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,k)),F._2(57,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,C)),F._2(60,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,O)),F._2(63,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,v)),F._2(66,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(69,0,null,null,19,"div",[["class","ngx-toolbar-set"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,M)),F._2(72,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,I)),F._2(75,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,P)),F._2(78,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,T)),F._2(81,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,y)),F._2(84,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,L)),F._2(87,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(90,0,null,null,10,"div",[["class","ngx-toolbar-set"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,E)),F._2(93,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,Y)),F._2(96,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,S)),F._2(99,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F._19(-1,null,["\n "])),(n()(),F._19(-1,null,["\n\n "])),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(104,0,[[1,0],["ngxTextArea",1]],null,0,"div",[["class","ngx-editor-textarea"]],[[1,"contenteditable",0],[1,"placeholder",0],[1,"translate",0],[1,"spellcheck",0],[4,"height",null],[4,"minHeight",null],[4,"resize",null]],[[null,"input"],[null,"focus"]],function(n,l,t){var u=!0,e=n.component;if("input"===l){e.html=t.target.innerHTML;u=!1!==e.htmlContentChange(t.target.innerHTML)&&u}if("focus"===l){u=!1!==e.onFocus()&&u}return u},null,null)),(n()(),F._19(-1,null,["\n\n "])),(n()(),F._19(-1,null,["\n "])),(n()(),F.Y(16777216,null,null,1,null,N)),F._2(108,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n\n "])),(n()(),F.Y(16777216,null,null,1,null,j)),F._2(111,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n"]))],function(n,l){var t=l.component;n(l,9,0,t.canEnableToolbarOptions("bold")),n(l,12,0,t.canEnableToolbarOptions("italic")),n(l,15,0,t.canEnableToolbarOptions("underline")),n(l,18,0,t.canEnableToolbarOptions("strikeThrough")),n(l,21,0,t.canEnableToolbarOptions("superscript")),n(l,24,0,t.canEnableToolbarOptions("subscript")),n(l,30,0,t.canEnableToolbarOptions("justifyLeft")),n(l,33,0,t.canEnableToolbarOptions("justifyCenter")),n(l,36,0,t.canEnableToolbarOptions("justifyRight")),n(l,39,0,t.canEnableToolbarOptions("justifyFull")),n(l,42,0,t.canEnableToolbarOptions("indent")),n(l,45,0,t.canEnableToolbarOptions("outdent")),n(l,51,0,t.canEnableToolbarOptions("cut")),n(l,54,0,t.canEnableToolbarOptions("copy")),n(l,57,0,t.canEnableToolbarOptions("delete")),n(l,60,0,t.canEnableToolbarOptions("removeFormat")),n(l,63,0,t.canEnableToolbarOptions("undo")),n(l,66,0,t.canEnableToolbarOptions("redo")),n(l,72,0,t.canEnableToolbarOptions("paragraph")),n(l,75,0,t.canEnableToolbarOptions("blockquote")),n(l,78,0,t.canEnableToolbarOptions("removeBlockquote")),n(l,81,0,t.canEnableToolbarOptions("horizontalLine")),n(l,84,0,t.canEnableToolbarOptions("orderedList")),n(l,87,0,t.canEnableToolbarOptions("unorderedList")),n(l,93,0,t.canEnableToolbarOptions("link")),n(l,96,0,t.canEnableToolbarOptions("unlink")),n(l,99,0,t.canEnableToolbarOptions("image")),n(l,108,0,t.ngxMessage),n(l,111,0,"stack"===t.resizer)},function(n,l){var t=l.component;n(l,1,0,t.config.width,t.config.minWidth),n(l,104,0,t.config.editable,t.config.placeholder,t.config.translate,t.config.spellcheck,t.config.height,t.minHeight||t.config.minHeight,t.canResize())})}function K(n){return F._20(0,[(n()(),F._4(0,0,null,null,1,"app-ngx-editor",[],null,[["document","click"]],function(n,l,t){var u=!0;if("document:click"===l){u=!1!==F._15(n,1).onDocumentClick(t)&&u}return u},w,tn)),F._2(1,114688,null,0,X,[F.k],null,null)],function(n,l){n(l,1,0)},null)}function R(n){return F._20(0,[(n()(),F._4(0,0,null,null,7,"div",[["class","htmlblock block"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,1,"h6",[],null,null,null,null,null)),(n()(),F._19(-1,null,["HTML Output"])),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(5,0,null,null,1,"div",[["class","html"]],null,null,null,null,null)),(n()(),F._19(6,null,["\n ","\n "])),(n()(),F._19(-1,null,["\n "]))],null,function(n,l){n(l,6,0,l.component.htmlContent)})}function z(n){return F._20(0,[(n()(),F._4(0,0,null,null,51,"div",[["class","container"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(2,0,null,null,27,"div",[["class","logo block"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(4,0,null,null,0,"img",[["alt","ngx-Editor"],["src","assets/icons/ngx-editor.svg"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(6,0,null,null,1,"h6",[],null,null,null,null,null)),(n()(),F._19(-1,null,["WYSIWYG Editor for Angular Applications."])),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(9,0,null,null,4,"p",[],null,null,null,null,null)),(n()(),F._19(-1,null,["(Currently -\n "])),(n()(),F._4(11,0,null,null,1,"a",[["href","https://github.com/Sibiraj-S/ngx-editor/releases/latest"]],null,null,null,null,null)),(n()(),F._19(12,null,["",""])),(n()(),F._19(-1,null,[") "])),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(15,0,null,null,1,"a",[["aria-label","Follow @Sibiraj-S on GitHub"],["class","github-button"],["href","https://github.com/Sibiraj-S"]],null,null,null,null,null)),(n()(),F._19(-1,null,["Follow @Sibiraj-S"])),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(18,0,null,null,1,"a",[["aria-label","Fork Sibiraj-S/ngx-editor on GitHub"],["class","github-button"],["href","https://github.com/Sibiraj-S/ngx-editor/fork"]],null,null,null,null,null)),(n()(),F._19(-1,null,["Fork"])),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(21,0,null,null,1,"a",[["aria-label","Star Sibiraj-S/ngx-editor on GitHub"],["class","github-button"],["href","https://github.com/Sibiraj-S/ngx-editor"]],null,null,null,null,null)),(n()(),F._19(-1,null,["Star"])),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(24,0,null,null,1,"a",[["aria-label","Issue Sibiraj-S/ngx-editor on GitHub"],["class","github-button"],["data-show-count","true"],["href","https://github.com/Sibiraj-S/ngx-editor/issues"]],null,null,null,null,null)),(n()(),F._19(-1,null,["Issue"])),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(27,0,null,null,1,"a",[["aria-label","Download Sibiraj-S/ngx-editor on GitHub"],["class","github-button"],["href","https://github.com/Sibiraj-S/ngx-editor/archive/master.zip"]],null,null,null,null,null)),(n()(),F._19(-1,null,["Download"])),(n()(),F._19(-1,null,["\n "])),(n()(),F._19(-1,null,["\n\n "])),(n()(),F._4(31,0,null,null,4,"div",[["class","editor block"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(33,0,null,null,1,"app-ngx-editor",[],null,[[null,"htmlChange"],["document","click"]],function(n,l,t){var u=!0,e=n.component;if("document:click"===l){u=!1!==F._15(n,34).onDocumentClick(t)&&u}if("htmlChange"===l){u=!1!==(e.htmlContent=t)&&u}return u},w,tn)),F._2(34,114688,null,0,X,[F.k],{spellcheck:[0,"spellcheck"],placeholder:[1,"placeholder"],config:[2,"config"],html:[3,"html"]},{htmlChange:"htmlChange"}),(n()(),F._19(-1,null,["\n "])),(n()(),F._19(-1,null,["\n\n "])),(n()(),F.Y(16777216,null,null,1,null,R)),F._2(38,16384,null,0,nn.c,[F.N,F.K],{ngIf:[0,"ngIf"]},null),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(40,0,null,null,10,"div",[["class","information block"]],null,null,null,null,null)),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(42,0,null,null,1,"h6",[],null,null,null,null,null)),(n()(),F._19(-1,null,["Documentation"])),(n()(),F._19(-1,null,["\n "])),(n()(),F._4(45,0,null,null,4,"p",[],null,null,null,null,null)),(n()(),F._19(-1,null,["Check\n "])),(n()(),F._4(47,0,null,null,1,"a",[["href","https://github.com/Sibiraj-S/ngx-editor/wiki/ngxEditor"]],null,null,null,null,null)),(n()(),F._19(-1,null,["wiki"])),(n()(),F._19(-1,null,[" for more information"])),(n()(),F._19(-1,null,["\n "])),(n()(),F._19(-1,null,["\n"]))],function(n,l){var t=l.component;n(l,34,0,!0,"Enter text here...",t.editorConfig,t.htmlContent),n(l,38,0,t.htmlContent)},function(n,l){n(l,12,0,l.component.latestRelease.name)})}function H(n){return F._20(0,[(n()(),F._4(0,0,null,null,2,"app-root",[],null,null,null,z,en)),F._16(512,null,D,D,[q.c]),F._2(2,114688,null,0,W,[D],null,null)],function(n,l){n(l,2,0)},null)}Object.defineProperty(l,"__esModule",{value:!0});var F=t("/oeL"),U={production:!0},A=function(){function n(){}return n}(),q=t("XKz0"),D=(t("GQSG"),function(){function n(n){this._http=n,this.releaseURL="https://api.github.com/repos/Sibiraj-S/ngx-editor/releases/latest"}return n.prototype.getLatestRelease=function(){return this._http.get(this.releaseURL).map(function(n){return n&&0!==n.length?n:[]})},n.ctorParameters=function(){return[{type:q.c}]},n}()),W=function(){function n(n){this._appService=n,this.title="ngx-editor",this.latestRelease={},this.editorConfig={editable:!0,spellcheck:!1,height:"5rem",minHeight:"2rem",placeholder:"Enter text here...",translate:"no"},this.htmlContent="WYSIWYG Editor for Angular Applications."}return n.prototype.getLatestRelease=function(){var n=this;this._appService.getLatestRelease().subscribe(function(l){return n.latestRelease=l},function(n){console.log(n)},function(){})},n.prototype.ngOnInit=function(){this.getLatestRelease()},n.ctorParameters=function(){return[{type:D}]},n}(),B=[".container[_ngcontent-%COMP%]{padding-top:1rem}.container[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{margin-bottom:1rem}.container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{text-align:center}.container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-bottom:.3rem}.container[_ngcontent-%COMP%] .htmlblock[_ngcontent-%COMP%] .html[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;padding:.5rem;background-color:#f1f1f1;max-height:10rem;overflow:auto}pre[_ngcontent-%COMP%]{background:#f1f1f1;padding:0 1rem}mark[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{border-radius:3px}mark[_ngcontent-%COMP%]{background-color:#f1f1f1;padding:.1rem .4rem}"],G=[".ngx-editor[_ngcontent-%COMP%]{position:relative}.ngx-editor[_ngcontent-%COMP%] [contenteditable=true]:empty:before{content:attr(placeholder);display:block}.ngx-editor[_ngcontent-%COMP%] .ngx-toolbar[_ngcontent-%COMP%]{background-color:#f5f5f5;border-bottom:1px solid #ddd;font-size:.8rem;padding:.2rem;border:1px solid #ddd}.ngx-editor[_ngcontent-%COMP%] .ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%]{display:inline-block;border:1px solid #ddd;border-radius:5px;background-color:#fff}.ngx-editor[_ngcontent-%COMP%] .ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]{background-color:#f5f5f5;background-color:transparent;border:0;padding:.4rem;min-width:2.5rem;float:left;border-right:1px solid #ddd}.ngx-editor[_ngcontent-%COMP%] .ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.ngx-editor[_ngcontent-%COMP%] .ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button.focus[_ngcontent-%COMP%], .ngx-editor[_ngcontent-%COMP%] .ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:focus{outline:0}.ngx-editor[_ngcontent-%COMP%] .ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:last-child{border-right:transparent}.ngx-editor[_ngcontent-%COMP%] .ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.ngx-editor[_ngcontent-%COMP%] .ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.ngx-editor[_ngcontent-%COMP%] .ngx-toolbar[_ngcontent-%COMP%] .ngx-toolbar-set[_ngcontent-%COMP%] .ngx-editor-button[_ngcontent-%COMP%]:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.ngx-editor[_ngcontent-%COMP%] .ngx-editor-textarea[_ngcontent-%COMP%]{min-height:5rem;padding:.5rem .8rem 1rem .8rem;border:1px solid #ddd;border-top:transparent!important;background-color:#fff;overflow:auto}.ngx-editor[_ngcontent-%COMP%] .ngx-editor-textarea.focus[_ngcontent-%COMP%], .ngx-editor[_ngcontent-%COMP%] .ngx-editor-textarea[_ngcontent-%COMP%]:focus{outline:0}.ngx-editor[_ngcontent-%COMP%] .ngx-editor-textarea[_ngcontent-%COMP%] blockquote{margin-left:1rem;border-left:.2em solid #dfe2e5;padding-left:.5rem}.ngx-editor[_ngcontent-%COMP%] .ngx-editor-message[_ngcontent-%COMP%]{font-size:80%;background-color:#f1f1f1;border:1px solid #ddd;border-top:transparent;padding:0 .5rem;padding-bottom:.1rem;transition:.5s ease-in}"],J=[".ngx-editor-grippie[_ngcontent-%COMP%]{height:9px;background-color:#f1f1f1;position:relative;text-align:center;cursor:s-resize;border:1px solid #ddd;border-top:transparent}.ngx-editor-grippie[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;top:1.5px}"],Q={editable:!0,spellcheck:!0,height:"auto",minHeight:"0",width:"auto",minWidth:"0",translate:"yes",placeholder:"Enter text here...",toolbar:[["bold","italic","underline","strikeThrough","superscript","subscript"],["justifyLeft","justifyCenter","justifyRight","justifyFull","indent","outdent"],["cut","copy","delete","removeFormat","undo","redo"],["paragraph","blockquote","removeBlockquote","horizontalLine","orderedList","unorderedList"],["link","unlink","image"]]},X=function(){function n(n){this._element=n,this.htmlChange=new F.m,this.enableToolbar=!1}return Object.defineProperty(n.prototype,"resizer",{get:function(){return this._resizer||"stack"},set:function(n){console.log(n),this._resizer="basic"===n?n:"stack"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"config",{get:function(){return this._config||Q},set:function(n){for(var l in Q)l&&(this[l]&&(n[l]=this[l]),n.hasOwnProperty(l)||(n[l]=Q[l]));this._config=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"html",{get:function(){return this._html},set:function(n){this._html=n},enumerable:!0,configurable:!0}),n.prototype.htmlContentChange=function(n){"
"===n?this.htmlChange.emit(""):this.htmlChange.emit(n)},n.prototype.executeCommand=function(n){document.execCommand(n,!1,null)},n.prototype.blockQuote=function(){document.execCommand("formatBlock",!1,"")},n.prototype.removeQuote=function(){document.execCommand("formatBlock",!1,"div")},n.prototype.createLink=function(){var n=document.getSelection();if("A"===n.anchorNode.parentElement.tagName){var l=prompt("Enter URL",n.anchorNode.parentElement.getAttribute("href"));l&&document.execCommand("createLink",!1,l)}else if("None"===n.type)this.createMessage("No selection made");else{var l=prompt("Enter URL","http://");l&&document.execCommand("createLink",!1,l)}},n.prototype.insertImage=function(){var n=prompt("Enter Image URL","http://");if(n){document.execCommand("insertImage",!1,n)||this.createMessage("Invalid URL")}},n.prototype.createMessage=function(n){var l=this;this.ngxMessage=n,setTimeout(function(){l.clearMessage()},5e3)},n.prototype.clearMessage=function(){this.ngxMessage=void 0},n.prototype.onFocus=function(){this.enableToolbar=!0},n.prototype.onDocumentClick=function(n){this._element.nativeElement.contains(n.target)?this.enableToolbar=!0:this.enableToolbar=!1},n.prototype.canEnableToolbarOptions=function(n){return u(n,this.config.toolbar)},n.prototype.resizeTextArea=function(n){var l=parseInt(this.height,10);l+=n,this.height=l+"px",this.textArea.nativeElement.style.height=this.height},n.prototype.canResize=function(){return"basic"===this.resizer&&"vertical"},n.prototype.ngOnInit=function(){this.textArea.nativeElement.innerHTML=this.html||"",this.height=this.height||this.textArea.nativeElement.offsetHeight,document.execCommand("enableObjectResizing",!0,!0)},n.ctorParameters=function(){return[{type:F.k}]},n}(),Z=function(){function n(n){this._editorComponent=n,this.oldY=0,this.grabber=!1}return n.prototype.onMouseMove=function(n){this.grabber&&(this._editorComponent.resizeTextArea(n.clientY-this.oldY),this.oldY=n.clientY)},n.prototype.onMouseUp=function(n){this.grabber=!1},n.prototype.onResize=function(n,l){this.grabber=!0,this.oldY=n.clientY,n.preventDefault()},n.ctorParameters=function(){return[{type:X}]},n}(),V=[J],$=F._1({encapsulation:0,styles:V,data:{}}),nn=(F.Z("app-ngx-grippie",Z,o,{},{},[]),t("qbdv")),ln=[G],tn=F._1({encapsulation:0,styles:ln,data:{}}),un=(F.Z("app-ngx-editor",X,K,{editable:"editable",spellcheck:"spellcheck",placeholder:"placeholder",translate:"translate",height:"height",minHeight:"minHeight",width:"width",minWidth:"minWidth",toolbar:"toolbar",resizer:"resizer",config:"config",html:"html"},{htmlChange:"htmlChange"},[]),[B]),en=F._1({encapsulation:0,styles:un,data:{}}),on=F.Z("app-root",W,H,{},{},[]),rn=t("fc+i"),cn=function(){function n(){}return n}(),an=F._0(A,[W],function(n){return F._13([F._14(512,F.i,F.W,[[8,[on]],[3,F.i],F.x]),F._14(5120,F.v,F._12,[[3,F.v]]),F._14(4608,nn.e,nn.d,[F.v]),F._14(4608,F.h,F.h,[]),F._14(5120,F.a,F._5,[]),F._14(5120,F.t,F._10,[]),F._14(5120,F.u,F._11,[]),F._14(4608,rn.b,rn.s,[nn.b]),F._14(6144,F.H,null,[rn.b]),F._14(4608,rn.e,rn.f,[]),F._14(5120,rn.c,function(n,l,t,u){return[new rn.k(n),new rn.o(l),new rn.n(t,u)]},[nn.b,nn.b,nn.b,rn.e]),F._14(4608,rn.d,rn.d,[rn.c,F.z]),F._14(135680,rn.m,rn.m,[nn.b]),F._14(4608,rn.l,rn.l,[rn.d,rn.m]),F._14(6144,F.F,null,[rn.l]),F._14(6144,rn.p,null,[rn.m]),F._14(4608,F.L,F.L,[F.z]),F._14(4608,rn.g,rn.g,[nn.b]),F._14(4608,rn.i,rn.i,[nn.b]),F._14(4608,q.h,q.m,[nn.b,F.B,q.k]),F._14(4608,q.n,q.n,[q.h,q.l]),F._14(5120,q.a,function(n){return[n]},[q.n]),F._14(4608,q.j,q.j,[]),F._14(6144,q.i,null,[q.j]),F._14(4608,q.g,q.g,[q.i]),F._14(6144,q.b,null,[q.g]),F._14(5120,q.f,q.o,[q.b,[2,q.a]]),F._14(4608,q.c,q.c,[q.f]),F._14(512,nn.a,nn.a,[]),F._14(1024,F.l,rn.q,[]),F._14(1024,F.b,function(n,l){return[rn.r(n,l)]},[[2,rn.h],[2,F.y]]),F._14(512,F.c,F.c,[[2,F.b]]),F._14(131584,F._3,F._3,[F.z,F.X,F.r,F.l,F.i,F.c]),F._14(2048,F.e,null,[F._3]),F._14(512,F.d,F.d,[F.e]),F._14(512,rn.a,rn.a,[[3,rn.a]]),F._14(512,cn,cn,[]),F._14(512,q.e,q.e,[]),F._14(512,q.d,q.d,[]),F._14(512,A,A,[]),F._14(256,q.k,"XSRF-TOKEN",[]),F._14(256,q.l,"X-XSRF-TOKEN",[])])});U.production&&Object(F.R)(),Object(rn.j)().bootstrapModuleFactory(an).catch(function(n){return console.log(n)})},gFIY:function(n,l){function t(n){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+n+"'.")})}t.keys=function(){return[]},t.resolve=t,n.exports=t,t.id="gFIY"}},[0]); \ No newline at end of file diff --git a/src/app/ngx-editor/ngx-editor.component.ts b/src/app/ngx-editor/ngx-editor.component.ts index c39a115a..fe6fcf84 100644 --- a/src/app/ngx-editor/ngx-editor.component.ts +++ b/src/app/ngx-editor/ngx-editor.component.ts @@ -125,7 +125,7 @@ export class NgxEditorComponent implements OnInit { // insert image insertImage() { - const imageURI = prompt('Enter URL', 'http://'); + const imageURI = prompt('Enter Image URL', 'http://'); if (imageURI) { const inserted = document.execCommand('insertImage', false, imageURI); if (!inserted) {