jodit-pro
Version:
PRO Version of Jodit Editor
14 lines • 6.46 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 e=t();for(var n in e)("object"==typeof exports?exports:o)[n]=e[n]}}(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,e){"use strict";var n=e(6441);n.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"]},n.Config.prototype.controls.showBlocks={isActive:o=>!!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ázat Bloky"}},45198:function(o,t,e){"use strict";e.r(t),e.d(t,{ar:function(){return s.a},cs_cz:function(){return r.a},de:function(){return c.a},es:function(){return u.a},fa:function(){return f.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 v.a},ko:function(){return _.a},nl:function(){return C.a},pl:function(){return E.a},pt_br:function(){return L.a},ru:function(){return T.a},tr:function(){return P.a},zh_cn:function(){return D.a},zh_tw:function(){return J.a}});var n=e(7085),s=e.n(n),i=e(42350),r=e.n(i),l=e(53189),c=e.n(l),a=e(48154),u=e.n(a),h=e(59551),f=e.n(h),d=e(41858),p=e.n(d),k=e(78777),g=e.n(k),b=e(25321),w=e.n(b),B=e(27847),x=e.n(B),m=e(23287),y=e.n(m),S=e(73035),v=e.n(S),q=e(97028),_=e.n(q),j=e(26436),C=e.n(j),z=e(6602),E=e.n(z),M=e(86401),L=e.n(M),$=e(54023),T=e.n($),H=e(8432),P=e.n(H),A=e(58366),D=e.n(A),I=e(46954),J=e.n(I)},46954:function(o){o.exports={"Show Blocks":"แสดงช่วงตึก"}},47682:function(o,t,e){"use strict";e.r(t),e.d(t,{showBlocks:function(){return p}});var n=e(82749),s=e(31635);e(12324);var i=e(45198),r=e(78879),l=e.n(r),c=e(65478),a=e(2748),u=e(580),h=e(50911),f=e(12153),d=e(2692);class p extends h.Plugin{get style(){return(0,u.getContainer)(this.jodit,p,"style",!0)}enable(){this.isEnabled=!0;let o=this.j.o.iframe?"body":".jodit-wysiwyg",{tagList:t,color:e}=this.j.o.showBlocks;this.style.innerHTML=t.map(t=>`${o} ${t}{
outline: 1px dashed ${e};
background-image: url("${"data:image/svg+xml;utf8,"+escape('<svg xmlns="http://www.w3.org/2000/svg" width="50px"><text dominant-baseline="hanging" text-anchor="end" style="fill: '+e+';font: 10px sans-serif" x="50px" y="0">'+t+"</text></svg>")}");
background-position: top 2px ${"rtl"===this.j.o.direction?"left":"right"} 4px;
background-repeat: no-repeat;
position: relative;
}`).join("")}disable(){this.isEnabled=!1;let o=(0,c.cached)(this,"style");o&&(o.innerHTML="")}toggle(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")}afterInit(o){o.e.on("showBlocksEnabled",()=>this.isEnabled),o.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()}beforeDestruct(o){this.disable(),a.Dom.safeRemove((0,c.cached)(this,"style"))}constructor(o){super(o),(0,n._)(this,"buttons",[{name:"showBlocks",group:"state"}]),(0,n._)(this,"isEnabled",!1),(0,u.extendLang)(i),f.Icon.set("showBlocks",l())}}(0,n._)(p,"requires",["license"]),(0,s.__decorate)([c.cache],p.prototype,"style",null),(0,s.__decorate)([c.autobind],p.prototype,"enable",null),(0,s.__decorate)([c.autobind],p.prototype,"disable",null),(0,s.__decorate)([c.autobind],p.prototype,"toggle",null),d.JoditPro.plugins.add("show-blocks",p)},48154:function(o){o.exports={"Show Blocks":"Mostrar Bloques"}},53189:function(o){o.exports={"Show Blocks":"Zeigen Blöcke"}},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)}])});