jodit-pro
Version:
PRO Version of Jodit Editor
8 lines • 6.88 kB
JavaScript
/*!
* jodit-pro - PRO Version of Jodit Editor
* Author: Chupurnov Valerii <chupurnov@gmail.com>
* Version: v4.9.27
* Url: https://xdsoft.net/jodit/pro/
* License(s): SEE LICENSE IN LICENSE.md
*/
!function(o,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var e in n)("object"==typeof exports?exports:o)[e]=n[e]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[314],{6602:function(o){o.exports={"Show Blocks":"Pokaż Bloki"}},7085:function(o){o.exports={"Show Blocks":"تظهر كتل"}},8432:function(o){o.exports={"Show Blocks":"Haritayı Blokları"}},12324:function(o,t,n){"use strict";var e=n(6441);e.Config.prototype.showBlocks={enable:!1,color:"#ccc",tagList:["html","body","div","span","applet","object","iframe","h1","h2","h3","h4","h5","h6","p","blockquote","pre","a","abbr","acronym","address","big","cite","code","del","dfn","em","img","ins","kbd","q","s","samp","small","strike","strong","sub","sup","tt","var","b","u","i","center","dl","dt","dd","fieldset","form","label","legend","caption","th","td","li","ol","ul","article","aside","canvas","details","embed","figure","figcaption","footer","header","hgroup","menu","nav","output","ruby","section","summary","time","mark","audio","video"]},e.Config.prototype.controls.showBlocks={isActive:function(o){return!!o.e.fire("showBlocksEnabled")},tooltip:"Show Blocks",command:"toggleShowBlocks"}},23287:function(o){o.exports={"Show Blocks":"Visualizza Blocchi"}},25321:function(o){o.exports={"Show Blocks":"Mutasd Meg Blokkok"}},26436:function(o){o.exports={"Show Blocks":"Toon Blokken"}},27847:function(o){o.exports={"Show Blocks":"Menunjukkan Blok"}},41858:function(o){o.exports={"Show Blocks":"Afficher Les Blocs"}},42350:function(o){o.exports={"Show Blocks":"Uk\xe1zat Bloky"}},45198:function(o,t,n){"use strict";n.r(t),n.d(t,{ar:function(){return s.a},cs_cz:function(){return r.a},de:function(){return a.a},es:function(){return u.a},fa:function(){return h.a},fr:function(){return p.a},he:function(){return g.a},hu:function(){return w.a},id:function(){return x.a},it:function(){return y.a},ja:function(){return S.a},ko:function(){return q.a},nl:function(){return C.a},pl:function(){return E.a},pt_br:function(){return L.a},ru:function(){return H.a},tr:function(){return A.a},zh_cn:function(){return I.a},zh_tw:function(){return R.a}});var e=n(7085),s=n.n(e),i=n(42350),r=n.n(i),c=n(53189),a=n.n(c),l=n(48154),u=n.n(l),f=n(59551),h=n.n(f),d=n(41858),p=n.n(d),k=n(78777),g=n.n(k),b=n(25321),w=n.n(b),B=n(27847),x=n.n(B),m=n(23287),y=n.n(m),v=n(73035),S=n.n(v),_=n(97028),q=n.n(_),j=n(26436),C=n.n(j),z=n(6602),E=n.n(z),M=n(86401),L=n.n(M),T=n(54023),H=n.n(T),P=n(8432),A=n.n(P),D=n(58366),I=n.n(D),J=n(46954),R=n.n(J)},46954:function(o){o.exports={"Show Blocks":"แสดงช่วงตึก"}},47682:function(o,t,n){"use strict";n.r(t),n.d(t,{showBlocks:function(){return B}});var e=n(80294),s=n(20616),i=n(67709),r=n(82749),c=n(18766),a=n(23078),l=n(31635);n(12324);var u=n(45198),f=n(78879),h=n.n(f),d=n(65478),p=n(2748),k=n(580),g=n(50911),b=n(12153),w=n(2692),B=function(o){function t(o){var n;return(0,s._)(this,t),n=(0,e._)(this,t,[o]),(0,r._)(n,"buttons",[{name:"showBlocks",group:"state"}]),(0,r._)(n,"isEnabled",!1),(0,k.extendLang)(u),b.Icon.set("showBlocks",h()),n}return(0,c._)(t,o),(0,i._)(t,[{key:"style",get:function(){return(0,k.getContainer)(this.jodit,t,"style",!0)}},{key:"enable",value:function(){var o=this;this.isEnabled=!0;var t=this.j.o.iframe?"body":".jodit-wysiwyg",n=this.j.o.showBlocks,e=n.tagList,s=n.color;this.style.innerHTML=e.map(function(n){var e;return"".concat(t," ").concat(n,"{\n outline: 1px dashed ").concat(s,';\n background-image: url("').concat((e='<svg xmlns="http://www.w3.org/2000/svg" width="50px"><text dominant-baseline="hanging" text-anchor="end" style="fill: '+s+';font: 10px sans-serif" x="50px" y="0">'+n+"</text></svg>","data:image/svg+xml;utf8,".concat(escape(e))),'");\n background-position: top 2px ').concat("rtl"===o.j.o.direction?"left":"right"," 4px;\n background-repeat: no-repeat;\n position: relative;\n }")}).join("")}},{key:"disable",value:function(){this.isEnabled=!1;var o=(0,d.cached)(this,"style");o&&(o.innerHTML="")}},{key:"toggle",value:function(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")}},{key:"afterInit",value:function(o){var t=this;o.e.on("showBlocksEnabled",function(){return t.isEnabled}),o.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()}},{key:"beforeDestruct",value:function(o){this.disable(),p.Dom.safeRemove((0,d.cached)(this,"style"))}}]),t}((0,a._)(g.Plugin));(0,r._)(B,"requires",["license"]),(0,l.__decorate)([d.cache],B.prototype,"style",null),(0,l.__decorate)([d.autobind],B.prototype,"enable",null),(0,l.__decorate)([d.autobind],B.prototype,"disable",null),(0,l.__decorate)([d.autobind],B.prototype,"toggle",null),w.JoditPro.plugins.add("show-blocks",B)},48154:function(o){o.exports={"Show Blocks":"Mostrar Bloques"}},53189:function(o){o.exports={"Show Blocks":"Zeigen Bl\xf6cke"}},54023:function(o){o.exports={"Show Blocks":"Показать Блоки"}},58366:function(o){o.exports={"Show Blocks":"显示块"}},59551:function(o){o.exports={"Show Blocks":"نشان می دهد بلوک"}},73035:function(o){o.exports={"Show Blocks":"ショーのブロック"}},78777:function(o){o.exports={"Show Blocks":"תראה רחובות"}},78879:function(o){o.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'},86401:function(o){o.exports={"Show Blocks":"Mostrar Blocos"}},97028:function(o){o.exports={"Show Blocks":"쇼 블록"}}},function(o){return o(o.s=47682)}])});