jodit-pro 1.2.26 → 1.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/jodit.css +1 -0
- package/build/jodit.es5.css +8 -0
- package/build/jodit.es5.js +1 -0
- package/build/jodit.fat.css +1 -0
- package/build/jodit.fat.es5.css +1 -0
- package/build/jodit.fat.es5.js +1 -0
- package/build/jodit.fat.js +1 -0
- package/build/jodit.js +1 -0
- package/build/plugins/autocomplete/autocomplete.css +1 -0
- package/build/plugins/autocomplete/autocomplete.es5.css +1 -0
- package/build/plugins/autocomplete/autocomplete.es5.js +1 -0
- package/build/plugins/autocomplete/autocomplete.js +1 -0
- package/build/plugins/backup/backup.css +1 -0
- package/build/plugins/backup/backup.es5.css +1 -0
- package/build/plugins/backup/backup.es5.js +1 -0
- package/build/plugins/backup/backup.js +1 -0
- package/build/plugins/button-generator/button-generator.css +1 -0
- package/build/plugins/button-generator/button-generator.es5.css +1 -0
- package/build/plugins/button-generator/button-generator.es5.js +1 -0
- package/build/plugins/button-generator/button-generator.js +1 -0
- package/build/plugins/change-case/change-case.es5.js +1 -0
- package/build/plugins/change-case/change-case.js +1 -0
- package/build/plugins/color-picker/color-picker.css +1 -0
- package/build/plugins/color-picker/color-picker.es5.css +1 -0
- package/build/plugins/color-picker/color-picker.es5.js +1 -0
- package/build/plugins/color-picker/color-picker.js +1 -0
- package/build/plugins/emoji/emoji.css +1 -0
- package/build/plugins/emoji/emoji.es5.css +1 -0
- package/build/plugins/emoji/emoji.es5.js +1 -0
- package/build/plugins/emoji/emoji.js +1 -0
- package/build/plugins/export-docs/export-docs.es5.js +1 -0
- package/build/plugins/export-docs/export-docs.js +1 -0
- package/build/plugins/finder/finder.css +1 -0
- package/build/plugins/finder/finder.es5.css +1 -0
- package/build/plugins/finder/finder.es5.js +1 -0
- package/build/plugins/finder/finder.js +1 -0
- package/build/plugins/google-maps/google-maps.css +1 -0
- package/build/plugins/google-maps/google-maps.es5.css +1 -0
- package/build/plugins/google-maps/google-maps.es5.js +1 -0
- package/build/plugins/google-maps/google-maps.js +1 -0
- package/build/plugins/google-search/google-search.es5.js +1 -0
- package/build/plugins/google-search/google-search.js +1 -0
- package/build/plugins/highlight-signature/highlight-signature.es5.js +1 -0
- package/build/plugins/highlight-signature/highlight-signature.js +1 -0
- package/build/plugins/keyboard/keyboard.css +1 -0
- package/build/plugins/keyboard/keyboard.es5.css +1 -0
- package/build/plugins/keyboard/keyboard.es5.js +1 -0
- package/build/plugins/keyboard/keyboard.js +1 -0
- package/build/plugins/page-break/page-break.css +1 -0
- package/build/plugins/page-break/page-break.es5.css +1 -0
- package/build/plugins/page-break/page-break.es5.js +1 -0
- package/build/plugins/page-break/page-break.js +1 -0
- package/build/plugins/paste-code/paste-code.css +1 -0
- package/build/plugins/paste-code/paste-code.es5.css +1 -0
- package/build/plugins/paste-code/paste-code.es5.js +1 -0
- package/build/plugins/paste-code/paste-code.js +1 -0
- package/build/plugins/show-blocks/show-blocks.es5.js +1 -0
- package/build/plugins/show-blocks/show-blocks.js +1 -0
- package/build/plugins/tune-block/tune-block.css +1 -0
- package/build/plugins/tune-block/tune-block.es5.css +1 -0
- package/build/plugins/tune-block/tune-block.es5.js +1 -0
- package/build/plugins/tune-block/tune-block.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[799],{694:function(e){e.exports='<svg width="11" height="15" viewBox="0 0 11 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.925 7.122V14H9.747L9.462 13.164C9.044 13.4933 8.55 13.7467 7.98 13.924C7.42267 14.1013 6.82733 14.19 6.194 14.19C5.054 14.19 4.066 13.9177 3.23 13.373C2.394 12.8157 1.75433 12.024 1.311 10.998C0.867667 9.972 0.646 8.756 0.646 7.35C0.646 5.96933 0.880333 4.766 1.349 3.74C1.83033 2.714 2.50167 1.92233 3.363 1.365C4.237 0.794999 5.25667 0.509999 6.422 0.509999C7.41 0.509999 8.284 0.693666 9.044 1.061C9.804 1.42833 10.3613 1.935 10.716 2.581L9.747 3.55C9.41767 3.03067 8.968 2.638 8.398 2.372C7.84067 2.09333 7.18833 1.954 6.441 1.954C5.17433 1.954 4.18633 2.429 3.477 3.379C2.76767 4.329 2.413 5.65267 2.413 7.35C2.413 9.07267 2.755 10.4153 3.439 11.378C4.13567 12.3407 5.10467 12.822 6.346 12.822C6.92867 12.822 7.46067 12.7397 7.942 12.575C8.436 12.4103 8.854 12.1697 9.196 11.853V8.414H6.023V7.122H10.925Z" fill="black"/> </svg>'},693:function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.googleSearch=void 0;var n=t(1),r=t(324),i=t(119),s=t(130),l=t(466),c=t(2);i.Config.prototype.controls.google={tooltip:"Google search",icon:t(694),isDisabled:function(e){return(0,l.isEditorEmpty)(e.editor)},command:"startSearch"};var u=function(e){function o(){var o=null!==e&&e.apply(this,arguments)||this;return o.requires=["license"],o.buttons=[{name:"google",group:"search"}],o}return(0,n.__extends)(o,e),o.prototype.afterInit=function(e){e.registerCommand("startSearch",{exec:function(){var o,t,n,r,i=e.s;if(r=i.isCollapsed()?null===(t=null===(o=i.current())||void 0===o?void 0:o.parentElement)||void 0===t?void 0:t.innerText:null===(n=i.sel)||void 0===n?void 0:n.toString()){var l="https://www.google.com/search?q="+encodeURIComponent((0,s.trim)(r));window.open(l,"_blank")}}})},o.prototype.beforeDestruct=function(e){},o}(r.Plugin);o.googleSearch=u,c.Jodit.plugins.add("google-search",u)}},function(e){return e(e.s=693)}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
((e,o)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[799],{221(e){e.exports='<svg width="11" height="15" viewBox="0 0 11 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.925 7.122V14H9.747L9.462 13.164C9.044 13.4933 8.55 13.7467 7.98 13.924C7.42267 14.1013 6.82733 14.19 6.194 14.19C5.054 14.19 4.066 13.9177 3.23 13.373C2.394 12.8157 1.75433 12.024 1.311 10.998C0.867667 9.972 0.646 8.756 0.646 7.35C0.646 5.96933 0.880333 4.766 1.349 3.74C1.83033 2.714 2.50167 1.92233 3.363 1.365C4.237 0.794999 5.25667 0.509999 6.422 0.509999C7.41 0.509999 8.284 0.693666 9.044 1.061C9.804 1.42833 10.3613 1.935 10.716 2.581L9.747 3.55C9.41767 3.03067 8.968 2.638 8.398 2.372C7.84067 2.09333 7.18833 1.954 6.441 1.954C5.17433 1.954 4.18633 2.429 3.477 3.379C2.76767 4.329 2.413 5.65267 2.413 7.35C2.413 9.07267 2.755 10.4153 3.439 11.378C4.13567 12.3407 5.10467 12.822 6.346 12.822C6.92867 12.822 7.46067 12.7397 7.942 12.575C8.436 12.4103 8.854 12.1697 9.196 11.853V8.414H6.023V7.122H10.925Z" fill="black"/> </svg>'},220(e,o,t){"use strict";t.r(o),t.d(o,{googleSearch:()=>c});var r=t(63),s=t(2),n=t(10),i=t(97),l=t(1);s.D.prototype.controls.google={tooltip:"Google search",icon:t(221),isDisabled(e){return(0,i.u)(e.editor)},command:"startSearch"};class c extends r.S{constructor(){super(...arguments),this.requires=["license"],this.buttons=[{name:"google",group:"search"}]}afterInit(e){e.registerCommand("startSearch",{exec(){var o,t,r;let s;const{s:i}=e;if(s=i.isCollapsed()?null===(t=null===(o=i.current())||void 0===o?void 0:o.parentElement)||void 0===t?void 0:t.innerText:null===(r=i.sel)||void 0===r?void 0:""+r,s){const e="https://www.google.com/search?q="+encodeURIComponent((0,n.trim)(s));window.open(e,"_blank")}}})}beforeDestruct(e){}}l.Jodit.plugins.add("google-search",c)}},e=>e(e.s=220)])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[10],{730:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.highlightSignature=void 0;var o=r(1),i=r(324),n=r(154),a=r(144),s=r(131),l=r(2);r(119).Config.prototype.highlightSignature={schema:{},excludeTags:["pre"]};var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.requires=["license"],t.idleId=0,t}return(0,o.__extends)(t,e),t.prototype.afterInit=function(e){Object.keys(e.o.highlightSignature.schema).length&&e.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",t.removeUtilWrappers)},t.prototype.beforeDestruct=function(e){e.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",t.removeUtilWrappers)},t.prototype.walkNodes=function(){if(this.j.isEditorMode()){this.checkUtilsBoxToSchema();var e=this.j,t=e.ed.createNodeIterator(e.editor,NodeFilter.SHOW_TEXT);this.j.async.cancelIdleCallback(this.idleId),this.workLoop(t)}},t.prototype.runWorker=function(e,t){var r;this.j.e.mute();try{do{if(!(r=t.nextNode()))return;if(this.checkNormalizing(r))return;this.checkReplaceSchemas(r)}while(r&&e.timeRemaining()>1)}finally{this.j.e.unmute()}this.workLoop(t)},t.prototype.workLoop=function(e){var t=this;this.idleId=this.j.async.requestIdleCallback((function(r){t.runWorker(r,e)}))},t.prototype.checkNormalizing=function(e){return!!a.Dom.isText(e.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)},t.prototype.checkReplaceSchemas=function(e){if(!t.hasUtilWrapper(e)){var r=e.nodeValue;if(null!=r){var o=this.j.o.highlightSignature;for(var i in o.schema){var n=RegExp(i);if(n.test(r)){var s=r.match(n);if(!s||void 0===s.index)continue;var l=o.schema[i](this.j,s);if(l)return a.Dom.markTemporary(l,{dataHighlightSchema:i}),void this.replaceMatchedTextToElm(e,r,s,l)}}}}},t.prototype.replaceMatchedTextToElm=function(e,t,r,o){var i,n=this.j,s=n.s.range,l=s.startContainer===e,h=s.startOffset,c=null!==(i=r.index)&&void 0!==i?i:0;e.nodeValue=t.substr(0,c);var u=t.substr(c+r[0].length);if(u.length){var f=n.createInside.text(u);a.Dom.after(e,f)}o.innerText=r[0],a.Dom.after(e,o),l&&this.restoreCursorPosition(h,e,o.firstChild,o.nextSibling)},t.hasUtilWrapper=function(e){return a.Dom.isTemporary(e.parentElement)},t.removeUtilWrappers=function(e){e.value=a.Dom.replaceTemporaryFromString(e.value)},t.prototype.restoreCursorPosition=function(e){for(var t,r,i=[],n=1;arguments.length>n;n++)i[n-1]=arguments[n];try{for(var a=(0,o.__values)(i),s=a.next();!s.done;s=a.next()){var l=s.value;if(l&&l.nodeValue){var h=l.nodeValue;if(h.length>=e){var c=this.j.s.createRange();c.setStart(l,e),this.j.s.selectRange(c,!1);break}e-=h.length}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}},t.prototype.checkUtilsBoxToSchema=function(){var e=this;a.Dom.temporaryList(this.j.editor).forEach((function(t){var r,o=(0,s.attr)(t,"dataHighlightSchema");if(o){var i=RegExp(o),n=null!==(r=t.innerText)&&void 0!==r?r:"";i.test(n)&&!n.replace(i,"").length||(e.j.s.save(),a.Dom.unwrap(t),e.j.s.restore())}}))},(0,o.__decorate)([(0,n.debounce)()],t.prototype,"walkNodes",null),(0,o.__decorate)([n.autobind],t.prototype,"runWorker",null),t}(i.Plugin);t.highlightSignature=h,l.Jodit.plugins.add("highlight-signature",h)}},function(e){return e(e.s=730)}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[10],{238(e,t,i){i.r(t),i.d(t,{highlightSignature:()=>h});var r=i(28),o=i(63),s=i(19),n=i(17),a=i(11),l=i(1);i(2).D.prototype.highlightSignature={schema:{},excludeTags:["pre"]};class h extends o.S{constructor(){super(...arguments),this.requires=["license"],this.idleId=0}afterInit(e){Object.keys(e.o.highlightSignature.schema).length&&e.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",h.removeUtilWrappers)}beforeDestruct(e){e.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",h.removeUtilWrappers)}walkNodes(){if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();const{j:e}=this,t=e.ed.createNodeIterator(e.editor,NodeFilter.SHOW_TEXT);this.j.async.cancelIdleCallback(this.idleId),this.workLoop(t)}runWorker(e,t){let i;this.j.e.mute();try{do{if(i=t.nextNode(),!i)return;if(this.checkNormalizing(i))return;this.checkReplaceSchemas(i)}while(i&&e.timeRemaining()>1)}finally{this.j.e.unmute()}this.workLoop(t)}workLoop(e){this.idleId=this.j.async.requestIdleCallback((t=>{this.runWorker(t,e)}))}checkNormalizing(e){return!!n.i.isText(e.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)}checkReplaceSchemas(e){if(h.hasUtilWrapper(e))return;const t=e.nodeValue;if(null==t)return;const{j:i}=this,r=i.o.highlightSignature;for(const i in r.schema){const o=RegExp(i);if(o.test(t)){const s=t.match(o);if(!s||void 0===s.index)continue;const a=r.schema[i](this.j,s);if(a)return n.i.markTemporary(a,{dataHighlightSchema:i}),void this.replaceMatchedTextToElm(e,t,s,a)}}}replaceMatchedTextToElm(e,t,i,r){var o;const{j:s}=this,{range:a}=s.s,l=a.startContainer===e,h=a.startOffset,c=null!==(o=i.index)&&void 0!==o?o:0;e.nodeValue=t.substr(0,c);const d=t.substr(c+i[0].length);if(d.length){const t=s.createInside.text(d);n.i.after(e,t)}r.innerText=i[0],n.i.after(e,r),l&&this.restoreCursorPosition(h,e,r.firstChild,r.nextSibling)}static hasUtilWrapper(e){return n.i.isTemporary(e.parentElement)}static removeUtilWrappers(e){e.value=n.i.replaceTemporaryFromString(e.value)}restoreCursorPosition(e,...t){for(const i of t)if(i&&i.nodeValue){const t=i.nodeValue;if(t.length>=e){const t=this.j.s.createRange();t.setStart(i,e),this.j.s.selectRange(t,!1);break}e-=t.length}}checkUtilsBoxToSchema(){n.i.temporaryList(this.j.editor).forEach((e=>{var t;const i=(0,a.Lj)(e,"dataHighlightSchema");if(!i)return;const r=RegExp(i),o=null!==(t=e.innerText)&&void 0!==t?t:"";r.test(o)&&!o.replace(r,"").length||(this.j.s.save(),n.i.unwrap(e),this.j.s.restore())}))}}(0,r.gn)([(0,s.debounce)()],h.prototype,"walkNodes",null),(0,r.gn)([s.autobind],h.prototype,"runWorker",null),l.Jodit.plugins.add("highlight-signature",h)}},e=>e(e.s=238)])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.jodit-ui-keyboard{user-select:none}.jodit-ui-keyboard__row{display:flex;justify-content:space-between}.jodit-ui-keyboard__key{align-items:center;background-color:#f5f5f5;border:1px solid var(--jd-color-border);border-radius:2px;cursor:pointer;display:flex;height:32px;justify-content:center;margin:2px;user-select:none;width:32px}.jodit-ui-keyboard__key:hover:not(.jodit-ui-keyboard__key_active_true):not(.jodit-ui-keyboard__key_pressed_true){border-color:var(--jd-color-border);box-shadow:0 1px 1px rgba(0,0,0,.1)}.jodit-ui-keyboard__key:active,.jodit-ui-keyboard__key_active_true,.jodit-ui-keyboard__key_pressed_true{background-color:#f6f6f6;border-color:#c6c6c6;box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.jodit-ui-keyboard__key *{pointer-events:none}.jodit-ui-keyboard__key svg{fill:var(--jd-color-dark);max-height:60%;max-width:60%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.jodit-ui-keyboard{user-select:none}.jodit-ui-keyboard__row{display:flex;justify-content:space-between}.jodit-ui-keyboard__key{align-items:center;background-color:#f5f5f5;border:1px solid var(--jd-color-border);border-radius:2px;cursor:pointer;display:flex;height:32px;justify-content:center;margin:2px;user-select:none;width:32px}.jodit-ui-keyboard__key:hover:not(.jodit-ui-keyboard__key_active_true):not(.jodit-ui-keyboard__key_pressed_true){border-color:var(--jd-color-border);box-shadow:0 1px 1px rgba(0,0,0,.1)}.jodit-ui-keyboard__key:active,.jodit-ui-keyboard__key_active_true,.jodit-ui-keyboard__key_pressed_true{background-color:#f6f6f6;border-color:#c6c6c6;box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.jodit-ui-keyboard__key *{pointer-events:none}.jodit-ui-keyboard__key svg{fill:var(--jd-color-dark);max-height:60%;max-width:60%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var s in o)("object"==typeof exports?exports:t)[s]=o[s]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[283],{711:function(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path d="M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z"/> </svg>'},705:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>'},707:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V24H8V15.2625H0L15 0.5Z"/> <rect x="8" y="26" width="14" height="3"/> </svg>'},708:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cy="12" cx="12" r="2.2"/> <circle cy="12" cx="5" r="2.2"/> <circle cy="12" cx="19" r="2.2"/> </svg>'},706:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},709:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M23.17 14.83l7.17 7.17h-28.34v4h28.34l-7.17 7.17 2.83 2.83 12-12-12-12-2.83 2.83zm16.83-2.83v24h4v-24h-4z"/> </svg>'},704:function(t,e,o){"use strict";o.r(e)},710:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=o(119);s.Config.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Español",keys:[["º ` ~","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","¡ = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","ç Ç \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ñ Ñ ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","ü Ü [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ö Ö ;","ä Ä ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ ±","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"Türkçe",keys:[['" é` ~',"1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","ü Ü",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","ö Ö <","ç Ç >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},s.Config.prototype.controls.keyboard={tooltip:"Keyboard",icon:o(711),isActive:function(t){return Boolean(t.e.fire("isKeyboardOpened"))},command:"toggleKeyboard"},s.Config.prototype.controls.extraKeyboardButtons={}},702:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.keyboard=void 0;var s=o(1),r=o(324),a=o(2),i=o(703),n=o(154);o(710);var c=o(121),p=o(235),h=o(158),u=o(119),y=function(t){function e(e){var o=t.call(this,e)||this;o.hasStyle=!a.Jodit.fatMode,o.requires=["license"],o.buttons=[{group:"insert",name:"keyboard"}];var s=e.o.keyboard,r=s.extraKeyButtons,i=s.extraKeyGroup;return r.length&&r.forEach((function(t,o){var s=(0,h.isString)(t)?t:t.key,r=(0,h.isString)(t)||!t.hotkeys?["ctrl+".concat(o+1)]:t.hotkeys;e.registerButton({name:"extraKeyboardButtons.".concat(s),group:i}),u.Config.defaultOptions.controls.extraKeyboardButtons[s]={name:s,tooltip:s,args:[s],hotkeys:r,command:"insertChar"}})),o}return(0,s.__extends)(e,t),e.prototype.afterInit=function(t){var e=this;t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",(function(){var t;return null===(t=e.__keyboard)||void 0===t?void 0:t.isOpened}))},e.prototype.insertChar=function(t,e,o){this.j.s.insertNode(this.j.createInside.text(o))},e.prototype.toggleKeyboard=function(){if(!this.__keyboard){this.__keyboard=new c.Dialog({toolbarButtonSize:"tiny"});var t=new i.UIKeyboard(this.j);this.__keyboard.setMod("slim",!0).setContent(t);var e=this.j.o.keyboard,o=e.layoutList;if(e.showLayoutSwitcher){var s=new p.UISelect(this.__keyboard,{value:t.state.currentLayout,options:e.layoutSwitchList.map((function(t){var e,s;return{text:null!==(s=null===(e=o[t])||void 0===e?void 0:e.title)&&void 0!==s?s:t,value:t}})),onChange:function(e){t.state.currentLayout=e}});s.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(s)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()},e.prototype.beforeDestruct=function(t){var e;null===(e=this.__keyboard)||void 0===e||e.destruct()},(0,s.__decorate)([n.autobind],e.prototype,"insertChar",null),(0,s.__decorate)([n.autobind],e.prototype,"toggleKeyboard",null),e}(r.Plugin);e.keyboard=y,a.Jodit.plugins.add("keyboard",y)},703:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIKeyboard=void 0;var s=o(1);o(704);var r=o(235),a=o(154),i=o(131),n=o(120),c=o(183),p=function(t){function e(e){var o=t.call(this,e)||this;return o.state={caps:!1,shift:!1,options:!1,currentLayout:o.j.o.keyboard.defaultLayoutSet},o._keys=o.getElms("key"),o.pressed=!1,o.reKeyDownTimeout=0,o.onStateChange(),o}var p;return(0,s.__extends)(e,t),p=e,e.prototype.className=function(){return"UIKeyboard"},e.prototype.render=function(){var t=this.j.options.keyboard,e=t.layout,o=t.keySize,s=e.length;return"<div>".concat(function(){for(var t=[],r=0;s>r;r+=1){for(var a=[],i=0;e[r].length>i;i+=1)a.push('<div style="width:'.concat(o*e[r][i],"px;height:").concat(o,'px;" class="&__key"></div>'));t.push("<div class='&__row'>".concat(a.join("\n"),"</div>"))}return t.join("\n")}(),"</div>")},e.prototype.onStateChange=function(){for(var t=this.state,e=t.options,o=t.shift,s=t.caps,r=this.j.o.keyboard.layoutList[t.currentLayout].keys,a=0,i=0;r.length>i;i+=1)for(var n=0;r[i].length>n;n+=1){var c=r[i][n].split(" "),h=c[0];o&&(h=c[1]),!o&&s&&c[1]&&p.isLetter(c[0])&&(h=c[1]),e&&(h=c[2]),this.setKeyValue(a,null!=h?h:c[0]),a+=1}},e.isLetter=function(t){return t.toLowerCase()!==t.toUpperCase()},e.prototype.setKeyValue=function(t,e){var o=this._keys[t];if(o){var s=!1,r=this.state,a=r.options,n=r.shift,c=r.caps;switch(e){case"Caps":s=c;break;case"Options":s=a;break;case"Shift":s=n}o.innerHTML=p.decorate(e),o.classList.toggle(this.getFullElName("key","active",!0),s),(0,i.attr)(o,"-key",e)}},e.prototype.onKeyUp=function(){this.pressed&&this.stopPress()},e.prototype.onReady=function(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)},e.prototype.stopPress=function(){var t=this;this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach((function(e){e.classList.remove(t.getFullElName("key","pressed",!0))})))},e.prototype.onKeyDown=function(t,e){var o=this;void 0===e&&(e=0);var s=t.target;if(!s||!s.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,s.classList.add(this.getFullElName("key","pressed",!0));var r=(0,i.attr)(s,"-key");switch(r){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:r,preventDefault:function(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(n.NBSP_SPACE));break;default:this.state.shift&&(this.state.shift=!1),r&&this.j.s.insertNode(this.j.createInside.text(r))}var a=this.j.o.keyboard,c=a.periodKeyRepeat;return this.reKeyDownTimeout=this.j.async.setTimeout((function(){return o.onKeyDown(t,c)}),e||a.delayKeyRepeat),!1},e.decorate=function(t){switch(t){case"Space":return"";case"Enter":return r.Icon.get("enter");case"Backspace":return o(705);case"Shift":return o(706);case"Caps":return o(707);case"Options":return o(708);case"Tab":return o(709);default:return t}},(0,s.__decorate)([(0,a.watch)(["state.currentLayout","state.options","state.shift","state.caps"])],e.prototype,"onStateChange",null),(0,s.__decorate)([(0,a.watch)(["ow:mouseup"])],e.prototype,"onKeyUp",null),(0,s.__decorate)([(0,a.hook)("ready")],e.prototype,"onReady",null),(0,s.__decorate)([c.default],e.prototype,"stopPress",null),(0,s.__decorate)([(0,a.watch)(["container:mousedown"],["container:touchstart"])],e.prototype,"onKeyDown",null),p=(0,s.__decorate)([a.component],e)}(r.UIElement);e.UIKeyboard=p}},function(t){return t(t.s=702)}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var s=e();for(var o in s)("object"==typeof exports?exports:t)[o]=s[o]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[283],{232(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path d="M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z"/> </svg>'},227(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>'},229(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V24H8V15.2625H0L15 0.5Z"/> <rect x="8" y="26" width="14" height="3"/> </svg>'},230(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cy="12" cx="12" r="2.2"/> <circle cy="12" cx="5" r="2.2"/> <circle cy="12" cx="19" r="2.2"/> </svg>'},228(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},231(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M23.17 14.83l7.17 7.17h-28.34v4h28.34l-7.17 7.17 2.83 2.83 12-12-12-12-2.83 2.83zm16.83-2.83v24h4v-24h-4z"/> </svg>'},226(t,e,s){"use strict";s.r(e),s.d(e,{keyboard:()=>g});var o,a=s(28),r=s(63),i=s(1),n=s(38),h=s(19),p=s(11),c=s(3),l=s(27);let y=o=class extends n.u1{constructor(t){super(t),this.state={caps:!1,shift:!1,options:!1,currentLayout:this.j.o.keyboard.defaultLayoutSet},this._keys=this.getElms("key"),this.pressed=!1,this.reKeyDownTimeout=0,this.onStateChange()}className(){return"UIKeyboard"}render(){const{layout:t,keySize:e}=this.j.options.keyboard,s=t.length;return`<div>${(()=>{const o=[];for(let a=0;s>a;a+=1){const s=[];for(let o=0;t[a].length>o;o+=1)s.push(`<div style="width:${e*t[a][o]}px;height:${e}px;" class="&__key"></div>`);o.push(`<div class='&__row'>${s.join("\n")}</div>`)}return o.join("\n")})()}</div>`}onStateChange(){const{currentLayout:t,options:e,shift:s,caps:a}=this.state,{keys:r}=this.j.o.keyboard.layoutList[t];let i=0;for(let t=0;r.length>t;t+=1)for(let n=0;r[t].length>n;n+=1){const h=r[t][n].split(" ");let p=h[0];s&&(p=h[1]),!s&&a&&h[1]&&o.isLetter(h[0])&&(p=h[1]),e&&(p=h[2]),this.setKeyValue(i,null!=p?p:h[0]),i+=1}}static isLetter(t){return t.toLowerCase()!==t.toUpperCase()}setKeyValue(t,e){const s=this._keys[t];if(!s)return;let a=!1;const{options:r,shift:i,caps:n}=this.state;switch(e){case"Caps":a=n;break;case"Options":a=r;break;case"Shift":a=i}s.innerHTML=o.decorate(e),s.classList.toggle(this.getFullElName("key","active",!0),a),(0,p.Lj)(s,"-key",e)}onKeyUp(){this.pressed&&this.stopPress()}onReady(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)}stopPress(){this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach((t=>{t.classList.remove(this.getFullElName("key","pressed",!0))})))}onKeyDown(t,e=0){const s=t.target;if(!s||!s.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,s.classList.add(this.getFullElName("key","pressed",!0));const o=(0,p.Lj)(s,"-key");switch(o){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:o,preventDefault(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(c.NBSP_SPACE));break;default:this.state.shift&&(this.state.shift=!1),o&&this.j.s.insertNode(this.j.createInside.text(o))}const{periodKeyRepeat:a,delayKeyRepeat:r}=this.j.o.keyboard;return this.reKeyDownTimeout=this.j.async.setTimeout((()=>this.onKeyDown(t,a)),e||r),!1}static decorate(t){switch(t){case"Space":return"";case"Enter":return n.JO.get("enter");case"Backspace":return s(227);case"Shift":return s(228);case"Caps":return s(229);case"Options":return s(230);case"Tab":return s(231);default:return t}}};(0,a.gn)([(0,h.watch)(["state.currentLayout","state.options","state.shift","state.caps"])],y.prototype,"onStateChange",null),(0,a.gn)([(0,h.watch)(["ow:mouseup"])],y.prototype,"onKeyUp",null),(0,a.gn)([(0,h.hook)("ready")],y.prototype,"onReady",null),(0,a.gn)([l.ZP],y.prototype,"stopPress",null),(0,a.gn)([(0,h.watch)(["container:mousedown"],["container:touchstart"])],y.prototype,"onKeyDown",null),y=o=(0,a.gn)([h.component],y);var d=s(2);d.D.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Español",keys:[["º ` ~","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","¡ = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","ç Ç \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ñ Ñ ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","ü Ü [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ö Ö ;","ä Ä ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ ±","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"Türkçe",keys:[['" é` ~',"1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","ü Ü",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","ö Ö <","ç Ç >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},d.D.prototype.controls.keyboard={tooltip:"Keyboard",icon:s(232),isActive(t){return!!t.e.fire("isKeyboardOpened")},command:"toggleKeyboard"},d.D.prototype.controls.extraKeyboardButtons={};var u=s(4),v=s(20);class g extends r.S{constructor(t){super(t),this.hasStyle=!i.Jodit.fatMode,this.requires=["license"],this.buttons=[{group:"insert",name:"keyboard"}];const{extraKeyButtons:e,extraKeyGroup:s}=t.o.keyboard;e.length&&e.forEach(((e,o)=>{const a=(0,v.HD)(e)?e:e.key,r=(0,v.HD)(e)||!e.hotkeys?["ctrl+"+(o+1)]:e.hotkeys;t.registerButton({name:"extraKeyboardButtons."+a,group:s});const{extraKeyboardButtons:i}=d.D.defaultOptions.controls;i[a]={name:a,tooltip:a,args:[a],hotkeys:r,command:"insertChar"}}))}afterInit(t){t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",(()=>{var t;return null===(t=this.__keyboard)||void 0===t?void 0:t.isOpened}))}insertChar(t,e,s){this.j.s.insertNode(this.j.createInside.text(s))}toggleKeyboard(){if(!this.__keyboard){this.__keyboard=new u.Dialog({toolbarButtonSize:"tiny"});const t=new y(this.j);this.__keyboard.setMod("slim",!0).setContent(t);const{showLayoutSwitcher:e,layoutSwitchList:s,layoutList:o}=this.j.o.keyboard;if(e){const e=new n.Cj(this.__keyboard,{value:t.state.currentLayout,options:s.map((t=>{var e,s;return{text:null!==(s=null===(e=o[t])||void 0===e?void 0:e.title)&&void 0!==s?s:t,value:t}})),onChange(e){t.state.currentLayout=e}});e.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(e)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}beforeDestruct(t){var e;null===(e=this.__keyboard)||void 0===e||e.destruct()}}(0,a.gn)([h.autobind],g.prototype,"insertChar",null),(0,a.gn)([h.autobind],g.prototype,"toggleKeyboard",null),i.Jodit.plugins.add("keyboard",g)}},t=>t(t.s=226)])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[data-jodit-page-break]{align-items:center;border:1px dashed var(--jd-color-border);display:flex;font-size:12px;height:24px;justify-content:center;page-break-before:always;text-transform:uppercase}[data-jodit-page-break]:active{border-color:var(--jd-color-border-active)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[data-jodit-page-break]{align-items:center;border:1px dashed var(--jd-color-border);display:flex;font-size:12px;height:24px;justify-content:center;page-break-before:always;text-transform:uppercase}[data-jodit-page-break]:active{border-color:var(--jd-color-border-active)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[790],{773:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg>'},771:function(e,t,r){"use strict";r.r(t)},772:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(119);o.Config.prototype.pageBreak={separator:'<div style="break-after: page"></div>'},o.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:r(773),command:"insertPageBreak"}},770:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageBreak=void 0;var o=r(1);r(771);var a=r(324),n=r(2);r(772);var i=r(144),p=r(154),s=r(130),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.requires=["license"],t.buttons=[{name:"pageBreak",group:"insert"}],t}return(0,o.__extends)(t,e),t.prototype.afterInit=function(e){var t=this;e.registerCommand("insertPageBreak",(function(){var r=e.createInside.div("",{});t.decoratePageBreak(r),e.s.insertNode(r,!1,!1);for(var o=r.parentNode;o&&o!==e.editor&&(i.Dom.after(o,r),!i.Dom.isBlock(o));)o=r.parentNode;e.s.setCursorAfter(r),e.setEditorValue()}))},t.prototype.decoratePageBreak=function(e){(0,s.attr)(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")},t.prototype.beforeDestruct=function(){},t.prototype.onChange=function(){var e=this;(0,s.$$)('[style*="page-break-after"]',this.j.editor).forEach((function(t){i.Dom.isEmpty(t)&&!(0,s.attr)(t,"data-jodit-page-break")&&e.decoratePageBreak(t)}))},t.prototype.onAfterGetValueFromEditor=function(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>.*?<\/div>/i,this.j.o.pageBreak.separator)},(0,o.__decorate)([(0,p.watch)([":change",":afterSetMode"]),(0,p.debounce)()],t.prototype,"onChange",null),(0,o.__decorate)([(0,p.watch)(":afterGetValueFromEditor")],t.prototype,"onAfterGetValueFromEditor",null),t}(a.Plugin);t.PageBreak=d,n.Jodit.plugins.add("pageBreak",d)}},function(e){return e(e.s=770)}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[790],{248(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg>'},247(e,t,a){"use strict";a.r(t),a.d(t,{PageBreak:()=>C});var r=a(28),o=a(63),i=a(1),s=a(2);s.D.prototype.pageBreak={separator:'<div style="break-after: page"></div>'},s.D.prototype.controls.pageBreak={tooltip:"Insert page break",icon:a(248),command:"insertPageBreak"};var p=a(17),d=a(19),n=a(10);class C extends o.S{constructor(){super(...arguments),this.requires=["license"],this.buttons=[{name:"pageBreak",group:"insert"}]}afterInit(e){e.registerCommand("insertPageBreak",(()=>{const t=e.createInside.div("",{});this.decoratePageBreak(t),e.s.insertNode(t,!1,!1);let a=t.parentNode;for(;a&&a!==e.editor&&(p.i.after(a,t),!p.i.isBlock(a));)a=t.parentNode;e.s.setCursorAfter(t),e.setEditorValue()}))}decoratePageBreak(e){(0,n.attr)(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")}beforeDestruct(){}onChange(){(0,n.$$)('[style*="page-break-after"]',this.j.editor).forEach((e=>{p.i.isEmpty(e)&&!(0,n.attr)(e,"data-jodit-page-break")&&this.decoratePageBreak(e)}))}onAfterGetValueFromEditor(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>.*?<\/div>/i,this.j.o.pageBreak.separator)}}(0,r.gn)([(0,d.watch)([":change",":afterSetMode"]),(0,d.debounce)()],C.prototype,"onChange",null),(0,r.gn)([(0,d.watch)(":afterGetValueFromEditor")],C.prototype,"onAfterGetValueFromEditor",null),i.Jodit.plugins.add("pageBreak",C)}},e=>e(e.s=247)])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.jodit-paste-code{display:flex;flex-direction:column;height:100%;justify-content:stretch;padding:16px}.jodit-paste-code__textarea{flex:1;height:100%;justify-content:stretch}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.jodit-paste-code{display:flex;flex-direction:column;height:100%;justify-content:stretch;padding:16px}.jodit-paste-code__textarea{flex:1;height:100%;justify-content:stretch}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var o in a)("object"==typeof exports?exports:e)[o]=a[o]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[535],{701:function(e){e.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'},699:function(e,t,a){"use strict";a.r(t)},700:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(119),n=a(130);o.Config.prototype.controls.pasteCode={icon:a(701),tooltip:"Paste code",command:"pasteCode"},o.Config.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode:function(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{highlight:function(e,t){return Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t)},isLangLoaded:function(e){return Boolean(Prism.languages[e])},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/prism.min.js"],langUrl:function(e){return"https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/components/prism-".concat(e,".min.js")},css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:function(e,t,a){return'<pre class="language-'.concat(t,'">').concat((0,n.htmlspecialchars)(a),"</pre>")},languages:[{value:"html",text:"HTML/XML"},{value:"plaintext",text:"Plain"},{value:"bash",text:"Bash"},{value:"javascript",text:"JavaScript"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"}],dialog:{width:700,height:600}}},698:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pasteCode=void 0;var o=a(1);a(699),a(700);var n=a(324),i=a(235),r=a(154),s=a(130),l=a(2),c=a(121),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.requires=["license"],t.buttons=[{name:"pasteCode",group:"clipboard"}],t.prismJSIsLoaded=!1,t}return(0,o.__extends)(t,e),t.prototype.afterInit=function(e){var t=this;e.registerCommand("pasteCode",(function(){return t.openCodeEditDialog()}))},t.prototype.openCodeEditDialog=function(e,t,a){var o=this,n=this.j,i=this.createForm(),r=(0,s.refs)(i),l=r.code,u=r.language;e&&(u.value=e),t&&(l.value=t),n.async.requestIdleCallback((function(){l.focus()})),n.s.save(),this.createDialog((function(){if(!i.validate())return!1;n.s.restore();var e=n.createInside.fromHTML(n.o.pasteCode.insertTemplate(n,u.value,l.value));if(a)c.Dom.replace(a,e,n.createInside,!1,!0);else{var t=n.s.current(),r=c.Dom.up(t,c.Dom.isBlock,n.editor);r?c.Dom.after(r,e):n.s.insertNode(e)}o.onChange()}),(function(){n.s.restore()})).setContent(i.container).open(!0)},t.prototype.beforeDestruct=function(e){},t.prototype.createForm=function(){var e=this.jodit;return new i.UIForm(e,[new i.UISelect(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new i.UITextArea(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})},t.prototype.createDialog=function(e,t){var a=new c.Dialog({language:this.j.o.language});return a.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,i.Button)(a,"","Cancel","default").onAction((function(){a.close(),t()})),(0,i.Button)(a,"save","Save","primary").onAction((function(){a.close(),e()}))]),a},t.prototype.onChange=function(){var e=this;(0,s.$$)("pre",this.j.editor).forEach((function(t){(0,s.attr)(t,"contenteditable")||((0,s.attr)(t,"contenteditable",!1),e.highlightCode(t))}))},t.prototype.highlightCode=function(e){return(0,o.__awaiter)(this,void 0,Promise,(function(){var t,a,n,i,r,l,u,p,d,h;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return a=(t=this.j.o.pasteCode).globalHighlightLib,i=(n=t.highlightLib).css,r=n.js,l=n.langUrl,u=n.highlight,p=n.isLangLoaded,this.prismJSIsLoaded||a?[3,2]:[4,Promise.all([(0,s.loadNextStyle)(this.jodit,i),(0,s.loadNext)(this.jodit,r)])];case 1:o.sent(),this.prismJSIsLoaded=!0,o.label=2;case 2:return d=this.parseLanguage(e),p(d)||a?[3,4]:[4,(0,s.appendScriptAsync)(this.jodit,l(d)).catch((function(){return null}))];case 3:o.sent(),o.label=4;case 4:return h=e,e.firstElementChild===e.lastElementChild&&c.Dom.isTag(e.firstElementChild,"code")&&(h=e.firstElementChild),h.innerHTML=u(h.innerText,d),[2]}}))}))},t.prototype.onPreEdit=function(e){var t=c.Dom.isNode(e)&&c.Dom.isTag(e,"pre")?e:c.Dom.closest(e.target,"pre",this.j.editor);if(t){var a=this.parseLanguage(t);this.openCodeEditDialog(a,t.innerText,t)}},t.prototype.parseLanguage=function(e){var t=null,a=function(e){return e.classList.forEach((function(e){if(/language-/.test(e)){var a=/language-(.*)/.exec(e);a&&a[1]&&(t=a[1])}}))};return a(e),null==t&&e.firstElementChild===e.lastElementChild&&c.Dom.isTag(e.firstElementChild,"code")&&a(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")},t.prototype.onAfterGetValueFromEditor=function(e){e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,(function(e,t,a,o,n,i){return"".concat(t).concat(o).concat((0,s.htmlspecialchars)((0,s.stripTags)(n))).concat(i)})).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,(function(e,t,a,o,n,i){return"".concat(t).concat(o).concat((0,s.htmlspecialchars)((0,s.stripTags)(n))).concat(i)}))},(0,o.__decorate)([r.autobind],t.prototype,"openCodeEditDialog",null),(0,o.__decorate)([(0,r.watch)("?:change"),(0,r.debounce)()],t.prototype,"onChange",null),(0,o.__decorate)([(0,r.watch)(["?:dblclick","?:editPreInPasteCode"])],t.prototype,"onPreEdit",null),(0,o.__decorate)([(0,r.watch)("?:afterGetValueFromEditor")],t.prototype,"onAfterGetValueFromEditor",null),(0,o.__decorate)([r.component],t)}(n.Plugin);t.pasteCode=u,l.Jodit.plugins.add("paste-code",u)}},function(e){return e(e.s=698)}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var s in a)("object"==typeof exports?exports:e)[s]=a[s]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[535],{225(e){e.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'},224(e,t,a){"use strict";a.r(t),a.d(t,{pasteCode:()=>p});var s=a(28),o=a(2),i=a(10);o.D.prototype.controls.pasteCode={icon:a(225),tooltip:"Paste code",command:"pasteCode"},o.D.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{highlight(e,t){return Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t)},isLangLoaded(e){return!!Prism.languages[e]},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/prism.min.js"],langUrl:e=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/components/prism-${e}.min.js`,css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:(e,t,a)=>`<pre class="language-${t}">${(0,i.htmlspecialchars)(a)}</pre>`,languages:[{value:"html",text:"HTML/XML"},{value:"plaintext",text:"Plain"},{value:"bash",text:"Bash"},{value:"javascript",text:"JavaScript"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"}],dialog:{width:700,height:600}};var l=a(63),n=a(38),r=a(19),c=a(1),d=a(4);let p=class extends l.S{constructor(){super(...arguments),this.requires=["license"],this.buttons=[{name:"pasteCode",group:"clipboard"}],this.prismJSIsLoaded=!1}afterInit(e){e.registerCommand("pasteCode",(()=>this.openCodeEditDialog()))}openCodeEditDialog(e,t,a){const s=this.j,o=this.createForm(),{code:l,language:n}=(0,i.refs)(o);e&&(n.value=e),t&&(l.value=t),s.async.requestIdleCallback((()=>{l.focus()})),s.s.save(),this.createDialog((()=>{if(!o.validate())return!1;{s.s.restore();const e=s.createInside.fromHTML(s.o.pasteCode.insertTemplate(s,n.value,l.value));if(a)d.Dom.replace(a,e,s.createInside,!1,!0);else{const t=s.s.current(),a=d.Dom.up(t,d.Dom.isBlock,s.editor);a?d.Dom.after(a,e):s.s.insertNode(e)}this.onChange()}}),(()=>{s.s.restore()})).setContent(o.container).open(!0)}beforeDestruct(e){}createForm(){const{jodit:e}=this;return new n.x4(e,[new n.Cj(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new n.GJ(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}createDialog(e,t){const a=new d.Dialog({language:this.j.o.language});return a.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,n.zx)(a,"","Cancel","default").onAction((()=>{a.close(),t()})),(0,n.zx)(a,"save","Save","primary").onAction((()=>{a.close(),e()}))]),a}onChange(){(0,i.$$)("pre",this.j.editor).forEach((e=>{(0,i.attr)(e,"contenteditable")||((0,i.attr)(e,"contenteditable",!1),this.highlightCode(e))}))}async highlightCode(e){const{globalHighlightLib:t,highlightLib:{css:a,js:s,langUrl:o,highlight:l,isLangLoaded:n}}=this.j.o.pasteCode;this.prismJSIsLoaded||t||(await Promise.all([(0,i.loadNextStyle)(this.jodit,a),(0,i.loadNext)(this.jodit,s)]),this.prismJSIsLoaded=!0);const r=this.parseLanguage(e);n(r)||t||await(0,i.appendScriptAsync)(this.jodit,o(r)).catch((()=>null));let c=e;e.firstElementChild===e.lastElementChild&&d.Dom.isTag(e.firstElementChild,"code")&&(c=e.firstElementChild),c.innerHTML=l(c.innerText,r)}onPreEdit(e){const t=d.Dom.isNode(e)&&d.Dom.isTag(e,"pre")?e:d.Dom.closest(e.target,"pre",this.j.editor);if(t){const e=this.parseLanguage(t);this.openCodeEditDialog(e,t.innerText,t)}}parseLanguage(e){let t=null;const a=e=>e.classList.forEach((e=>{if(/language-/.test(e)){const a=/language-(.*)/.exec(e);a&&a[1]&&(t=a[1])}}));return a(e),null==t&&e.firstElementChild===e.lastElementChild&&d.Dom.isTag(e.firstElementChild,"code")&&a(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")}onAfterGetValueFromEditor(e){e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,((e,t,a,s,o,l)=>`${t}${s}${(0,i.htmlspecialchars)((0,i.stripTags)(o))}${l}`)).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,((e,t,a,s,o,l)=>`${t}${s}${(0,i.htmlspecialchars)((0,i.stripTags)(o))}${l}`))}};(0,s.gn)([r.autobind],p.prototype,"openCodeEditDialog",null),(0,s.gn)([(0,r.watch)("?:change"),(0,r.debounce)()],p.prototype,"onChange",null),(0,s.gn)([(0,r.watch)(["?:dblclick","?:editPreInPasteCode"])],p.prototype,"onPreEdit",null),(0,s.gn)([(0,r.watch)("?:afterGetValueFromEditor")],p.prototype,"onAfterGetValueFromEditor",null),p=(0,s.gn)([r.component],p),c.Jodit.plugins.add("paste-code",p)}},e=>e(e.s=224)])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var e=o();for(var n in e)("object"==typeof exports?exports:t)[n]=e[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[876],{668:function(t){t.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>'},647:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=e(119);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:function(t){return Boolean(t.e.fire("showBlocksEnabled"))},tooltip:"Show Blocks",command:"toggleShowBlocks"}},648:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.zh_tw=o.zh_cn=o.tr=o.ru=o.pt_br=o.pl=o.nl=o.ko=o.ja=o.it=o.id=o.hu=o.he=o.fr=o.fa=o.es=o.de=o.cs_cz=o.ar=void 0;var n=e(649);o.ar=n;var s=e(650);o.cs_cz=s;var r=e(651);o.de=r;var i=e(652);o.es=i;var l=e(653);o.fa=l;var a=e(654);o.fr=a;var c=e(655);o.he=c;var u=e(656);o.hu=u;var h=e(657);o.id=h;var p=e(658);o.it=p;var d=e(659);o.ja=d;var f=e(660);o.ko=f;var k=e(661);o.nl=k;var b=e(662);o.pl=b;var w=e(663);o.pt_br=w;var g=e(664);o.ru=g;var v=e(665);o.tr=v;var B=e(666);o.zh_cn=B;var x=e(667);o.zh_tw=x},646:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.showBlocks=void 0;var n=e(1);e(647);var s=e(324),r=e(121),i=e(235),l=e(142),a=e(154),c=e(2),u=function(t){function o(o){var n=t.call(this,o)||this;return n.requires=["license"],n.buttons=[{name:"showBlocks",group:"state"}],n.isEnabled=!1,(0,l.extendLang)(e(648)),i.Icon.set("showBlocks",e(668)),n}return(0,n.__extends)(o,t),o.prototype.enable=function(){var t=this;this.isEnabled=!0;var o=this.j.o.iframe?"body":".jodit-wysiwyg",e=this.j.o.showBlocks,n=e.color;this.style.innerHTML=e.tagList.map((function(e){return"".concat(o," ").concat(e,"{\n\t\t\t\t\toutline: 1px dashed ").concat(n,';\n\t\t\t\t\tbackground-image: url("').concat((s='<svg xmlns="http://www.w3.org/2000/svg" width="50px"><text dominant-baseline="hanging" text-anchor="end" style="fill: '+n+';font: 10px sans-serif" x="50px" y="0">'+e+"</text></svg>","data:image/svg+xml;utf8,".concat(escape(s))),'");\n\t\t\t\t\tbackground-position: top 2px ').concat("rtl"===t.j.o.direction?"left":"right"," 4px;\n\t\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\t\tposition: relative;\n\t\t\t\t}");var s})).join("")},o.prototype.disable=function(){this.isEnabled=!1,this.style.innerHTML=""},o.prototype.toggle=function(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")},o.prototype.afterInit=function(t){var e=this;this.style=(0,l.getContainer)(t,o,"style",!0),t.e.on("showBlocksEnabled",(function(){return e.isEnabled})),t.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()},o.prototype.beforeDestruct=function(t){this.disable(),r.Dom.safeRemove(this.style)},(0,n.__decorate)([a.autobind],o.prototype,"enable",null),(0,n.__decorate)([a.autobind],o.prototype,"disable",null),(0,n.__decorate)([a.autobind],o.prototype,"toggle",null),o}(s.Plugin);o.showBlocks=u,c.Jodit.plugins.add("show-blocks",u)},649:function(t){t.exports={"Show Blocks":"تظهر كتل"}},650:function(t){t.exports={"Show Blocks":"Ukázat Bloky"}},651:function(t){t.exports={"Show Blocks":"Zeigen Blöcke"}},652:function(t){t.exports={"Show Blocks":"Mostrar Bloques"}},653:function(t){t.exports={"Show Blocks":"نشان می دهد بلوک"}},654:function(t){t.exports={"Show Blocks":"Afficher Les Blocs"}},655:function(t){t.exports={"Show Blocks":"תראה רחובות"}},656:function(t){t.exports={"Show Blocks":"Mutasd Meg Blokkok"}},657:function(t){t.exports={"Show Blocks":"Menunjukkan Blok"}},658:function(t){t.exports={"Show Blocks":"Visualizza Blocchi"}},659:function(t){t.exports={"Show Blocks":"ショーのブロック"}},660:function(t){t.exports={"Show Blocks":"쇼 블록"}},661:function(t){t.exports={"Show Blocks":"Toon Blokken"}},662:function(t){t.exports={"Show Blocks":"Pokaż Bloki"}},663:function(t){t.exports={"Show Blocks":"Mostrar Blocos"}},664:function(t){t.exports={"Show Blocks":"Показать Блоки"}},665:function(t){t.exports={"Show Blocks":"Haritayı Blokları"}},666:function(t){t.exports={"Show Blocks":"显示块"}},667:function(t){t.exports={"Show Blocks":"แสดงช่วงตึก"}}},function(t){return t(t.s=646)}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
((t,o)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var e=o();for(var s in e)("object"==typeof exports?exports:t)[s]=e[s]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[876],{209(t){t.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>'},189(t,o,e){"use strict";e.r(o),e.d(o,{ar:()=>s,cs_cz:()=>l,de:()=>i,es:()=>r,fa:()=>a,fr:()=>n,he:()=>h,hu:()=>c,id:()=>p,it:()=>d,ja:()=>k,ko:()=>u,nl:()=>b,pl:()=>w,pt_br:()=>g,ru:()=>B,tr:()=>x,zh_cn:()=>f,zh_tw:()=>m});const s=e(190),l=e(191),i=e(192),r=e(193),a=e(194),n=e(195),h=e(196),c=e(197),p=e(198),d=e(199),k=e(200),u=e(201),b=e(202),w=e(203),g=e(204),B=e(205),x=e(206),f=e(207),m=e(208)},188(t,o,e){"use strict";e.r(o),e.d(o,{showBlocks:()=>p});var s=e(28),l=e(2);l.D.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"]},l.D.prototype.controls.showBlocks={isActive(t){return!!t.e.fire("showBlocksEnabled")},tooltip:"Show Blocks",command:"toggleShowBlocks"};var i=e(63),r=e(4),a=e(38),n=e(15),h=e(19),c=e(1);class p extends i.S{constructor(t){super(t),this.requires=["license"],this.buttons=[{name:"showBlocks",group:"state"}],this.isEnabled=!1,(0,n.xl)(e(189)),a.JO.set("showBlocks",e(209))}enable(){this.isEnabled=!0;const t=this.j.o.iframe?"body":".jodit-wysiwyg",{tagList:o,color:e}=this.j.o.showBlocks;this.style.innerHTML=o.map((o=>{return`${t} ${o}{\n\t\t\t\t\toutline: 1px dashed ${e};\n\t\t\t\t\tbackground-image: url("${s='<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">'+o+"</text></svg>","data:image/svg+xml;utf8,"+escape(s)}");\n\t\t\t\t\tbackground-position: top 2px ${"rtl"===this.j.o.direction?"left":"right"} 4px;\n\t\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\t\tposition: relative;\n\t\t\t\t}`;var s})).join("")}disable(){this.isEnabled=!1,this.style.innerHTML=""}toggle(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")}afterInit(t){this.style=(0,n.ZO)(t,p,"style",!0),t.e.on("showBlocksEnabled",(()=>this.isEnabled)),t.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()}beforeDestruct(t){this.disable(),r.Dom.safeRemove(this.style)}}(0,s.gn)([h.autobind],p.prototype,"enable",null),(0,s.gn)([h.autobind],p.prototype,"disable",null),(0,s.gn)([h.autobind],p.prototype,"toggle",null),c.Jodit.plugins.add("show-blocks",p)},190(t){t.exports={"Show Blocks":"تظهر كتل"}},191(t){t.exports={"Show Blocks":"Ukázat Bloky"}},192(t){t.exports={"Show Blocks":"Zeigen Blöcke"}},193(t){t.exports={"Show Blocks":"Mostrar Bloques"}},194(t){t.exports={"Show Blocks":"نشان می دهد بلوک"}},195(t){t.exports={"Show Blocks":"Afficher Les Blocs"}},196(t){t.exports={"Show Blocks":"תראה רחובות"}},197(t){t.exports={"Show Blocks":"Mutasd Meg Blokkok"}},198(t){t.exports={"Show Blocks":"Menunjukkan Blok"}},199(t){t.exports={"Show Blocks":"Visualizza Blocchi"}},200(t){t.exports={"Show Blocks":"ショーのブロック"}},201(t){t.exports={"Show Blocks":"쇼 블록"}},202(t){t.exports={"Show Blocks":"Toon Blokken"}},203(t){t.exports={"Show Blocks":"Pokaż Bloki"}},204(t){t.exports={"Show Blocks":"Mostrar Blocos"}},205(t){t.exports={"Show Blocks":"Показать Блоки"}},206(t){t.exports={"Show Blocks":"Haritayı Blokları"}},207(t){t.exports={"Show Blocks":"显示块"}},208(t){t.exports={"Show Blocks":"แสดงช่วงตึก"}}},t=>t(t.s=188)])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.jodit-ui-tuner{left:0;position:absolute;right:0;top:0;z-index:1}.jodit-ui-tuner__handle{background-color:var(--jd-color-background-gray);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 8 8' xmlns='http://www.w3.org/2000/svg' fill='%23606673'%3E%3Ccircle cx='6.5' cy='1.5' r='1.5'/%3E%3Ccircle cx='6.5' cy='6.5' r='1.5'/%3E%3Ccircle cx='1.5' cy='1.5' r='1.5'/%3E%3Ccircle cx='1.5' cy='6.5' r='1.5'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:8px;cursor:pointer;height:18px;opacity:.5;width:18px}.jodit-ui-tuner__handle:hover,.jodit-ui-tuner_opened_true .jodit-ui-tuner__handle{opacity:1}.jodit-ui-tuner__toolbar{display:none}.jodit-ui-tuner_opened_true .jodit-ui-tuner__toolbar{display:block}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.jodit-ui-tuner{left:0;position:absolute;right:0;top:0;z-index:1}.jodit-ui-tuner__handle{background-color:var(--jd-color-background-gray);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 8 8' xmlns='http://www.w3.org/2000/svg' fill='%23606673'%3E%3Ccircle cx='6.5' cy='1.5' r='1.5'/%3E%3Ccircle cx='6.5' cy='6.5' r='1.5'/%3E%3Ccircle cx='1.5' cy='1.5' r='1.5'/%3E%3Ccircle cx='1.5' cy='6.5' r='1.5'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:8px;cursor:pointer;height:18px;opacity:.5;width:18px}.jodit-ui-tuner__handle:hover,.jodit-ui-tuner_opened_true .jodit-ui-tuner__handle{opacity:1}.jodit-ui-tuner__toolbar{display:none}.jodit-ui-tuner_opened_true .jodit-ui-tuner__toolbar{display:block}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[288],{728:function(e,t,o){o.r(t)},729:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),r=o(119),i=o(144),c=o(130),s=["tune.up","tune.remove","tune.down"],u=(0,n.__spreadArray)(["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n"],(0,n.__read)(s),!1);function l(e){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+e.toUpperCase()+"</text></svg>",isActive:function(t,o,n){var r;return(null===(r=null==n?void 0:n.target)||void 0===r?void 0:r.tagName.toLowerCase())===e},exec:function(t,o){if(o){t.selection.save();var n=i.Dom.replace(o,e,t.createInside);t.selection.restore(),t.e.fire("synchro"),t.e.fire("afterExecTune.tune",n)}return!0}}}function p(e){var t=e?"previousSibling":"nextSibling";return{icon:e?"angle-up":"angle-down",isDisabled:function(e,o,n){var r;return!(null===(r=null==n?void 0:n.target)||void 0===r?void 0:r[t])},exec:function(o,n){var r=null==n?void 0:n[t];return n&&r&&(o.selection.save(),(0,c.call)(e?i.Dom.before:i.Dom.after,r,n),o.selection.restore()),o.e.fire("synchro"),o.e.fire("afterExecTune.tune"),!0}}}r.Config.prototype.tuneBlock={popup:{p:s,table:s,img:s,blockquote:s,div:s,pre:(0,n.__spreadArray)(["tune.editPre"],(0,n.__read)(s),!1),h1:u,h2:u,h3:u,h4:u,h5:u,h6:u}},r.Config.prototype.controls.tune={h1:l("h1"),h2:l("h2"),h3:l("h3"),h4:l("h4"),h5:l("h5"),h6:l("h6"),up:p(!0),down:p(!1),editPre:{icon:"pencil",exec:function(e,t){e.e.fire("editPreInPasteCode",t)}},remove:{icon:"bin",exec:function(e,t){i.Dom.safeRemove(t),e.e.fire("synchro"),e.e.fire("closeTuner.tune")}}}},726:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.tuneBlock=void 0;var n=o(1),r=o(324),i=o(154),c=o(2),s=o(727);o(729);var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.requires=["license"],t}return(0,n.__extends)(t,e),t.prototype.afterInit=function(e){this.tuner=new s.UITuner(e)},t.prototype.hideTuner=function(){this.tuner.hide()},t.prototype.onChangeSelection=function(){this.j.s.isCollapsed()||this.hideTuner()},t.prototype.onClickInBlock=function(e){this.j.s.isCollapsed()&&this.tuner.show()},t.prototype.beforeDestruct=function(e){this.tuner.destruct()},(0,n.__decorate)([(0,i.watch)(":outsideClick :keydown")],t.prototype,"hideTuner",null),(0,n.__decorate)([(0,i.watch)("j.ed:selectionchange"),(0,i.debounce)()],t.prototype,"onChangeSelection",null),(0,n.__decorate)([(0,i.watch)(":click")],t.prototype,"onClickInBlock",null),t}(r.Plugin);t.tuneBlock=u,c.Jodit.plugins.add("tune-block",u)},727:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.UITuner=void 0;var n=o(1);o(728);var r=o(235),i=o(144),c=o(130),s=o(154),u=o(313),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isShown=!1,t.toolbar=(0,u.makeCollection)(t.j,t),t.popup=new r.Popup(t.j,!1),t}return(0,n.__extends)(t,e),t.prototype.className=function(){return"UITuner"},t.prototype.render=function(){return"<div>\n\t\t\t<div class='&__handle' title='~Click to tune~'/>\n\t\t</div>"},t.prototype.show=function(){var e=this,t=this.j.s.current();if(!t)return this.hide();var o=i.Dom.isBlock(t)?t:i.Dom.closest(t,(function(t){return Boolean(t&&e.j.o.tuneBlock.popup[t.nodeName.toLowerCase()])}),this.j.editor);if(!o||o===this.j.editor||!this.j.o.tuneBlock.popup[o.tagName.toLowerCase()])return this.hide();this.currentBlock=o,this.isShown=!0,this.closeToolbar(),this.calcPosition(),this.container.parentNode||this.j.workplace.append(this.container)},t.prototype.hide=function(){this.isShown&&(this.isShown=!1,i.Dom.safeRemove(this.container),this.closeToolbar())},t.prototype.onEditorScroll=function(){this.isShown&&this.calcPosition()},t.prototype.calcPosition=function(){var e=this.currentBlock.offsetTop-this.j.editor.scrollTop;(0,c.css)(this.container,{transform:"translate3d(".concat(this.currentBlock.offsetWidth-15,"px, ").concat(e,"px, 0)")}),this.popup.isOpened&&this.popup.updatePosition()},t.prototype.onAfterExecTune=function(e){e&&(this.currentBlock=e),this.calcPosition(),this.openToolbar()},t.prototype.onClickPrevent=function(e){e.preventDefault(),e.stopPropagation()},t.prototype.onTargetClick=function(){this.toggleToolbar()},t.prototype.openToolbar=function(){var e=this;this.setMod("opened",!0),this.toolbar.build(this.j.o.tuneBlock.popup[this.currentBlock.tagName.toLowerCase()],this.currentBlock),this.popup.setContent(this.toolbar.container),this.popup.isOpened||this.popup.open((function(){return(0,c.position)(e.getElm("handle"))}))},t.prototype.closeToolbar=function(){this.setMod("opened",!1),this.popup.close()},t.prototype.toggleToolbar=function(){this.getMod("opened")?this.closeToolbar():this.openToolbar()},(0,n.__decorate)([(0,s.watch)("j.editor:scroll"),(0,s.throttle)(10)],t.prototype,"onEditorScroll",null),(0,n.__decorate)([(0,s.watch)(":afterExecTune.tune"),(0,s.idle)()],t.prototype,"onAfterExecTune",null),(0,n.__decorate)([(0,s.watch)("container:click container:mousedown")],t.prototype,"onClickPrevent",null),(0,n.__decorate)([(0,s.watch)("handle:click")],t.prototype,"onTargetClick",null),(0,n.__decorate)([(0,s.watch)(":closeTuner.tune")],t.prototype,"closeToolbar",null),(0,n.__decorate)([s.component],t)}(r.UIElement);t.UITuner=l}},function(e){return e(e.s=726)}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[288],{237(e,t,o){o.r(t),o.d(t,{tuneBlock:()=>k});var n=o(28),i=o(63),s=o(19),r=o(1),l=o(38),c=o(17),h=o(10),u=o(58);let p=class extends l.u1{constructor(){super(...arguments),this.isShown=!1,this.toolbar=(0,u.R)(this.j,this),this.popup=new l.GI(this.j,!1)}className(){return"UITuner"}render(){return"<div>\n\t\t\t<div class='&__handle' title='~Click to tune~'/>\n\t\t</div>"}show(){const e=this.j.s.current();if(!e)return this.hide();const t=c.i.isBlock(e)?e:c.i.closest(e,(e=>!(!e||!this.j.o.tuneBlock.popup[e.nodeName.toLowerCase()])),this.j.editor);if(!t||t===this.j.editor||!this.j.o.tuneBlock.popup[t.tagName.toLowerCase()])return this.hide();this.currentBlock=t,this.isShown=!0,this.closeToolbar(),this.calcPosition(),this.container.parentNode||this.j.workplace.append(this.container)}hide(){this.isShown&&(this.isShown=!1,c.i.safeRemove(this.container),this.closeToolbar())}onEditorScroll(){this.isShown&&this.calcPosition()}calcPosition(){(0,h.css)(this.container,{transform:`translate3d(${this.currentBlock.offsetWidth-15}px, ${this.currentBlock.offsetTop-this.j.editor.scrollTop}px, 0)`}),this.popup.isOpened&&this.popup.updatePosition()}onAfterExecTune(e){e&&(this.currentBlock=e),this.calcPosition(),this.openToolbar()}onClickPrevent(e){e.preventDefault(),e.stopPropagation()}onTargetClick(){this.toggleToolbar()}openToolbar(){this.setMod("opened",!0),this.toolbar.build(this.j.o.tuneBlock.popup[this.currentBlock.tagName.toLowerCase()],this.currentBlock),this.popup.setContent(this.toolbar.container),this.popup.isOpened||this.popup.open((()=>(0,h.position)(this.getElm("handle"))))}closeToolbar(){this.setMod("opened",!1),this.popup.close()}toggleToolbar(){this.getMod("opened")?this.closeToolbar():this.openToolbar()}};(0,n.gn)([(0,s.watch)("j.editor:scroll"),(0,s.throttle)(10)],p.prototype,"onEditorScroll",null),(0,n.gn)([(0,s.watch)(":afterExecTune.tune"),(0,s.idle)()],p.prototype,"onAfterExecTune",null),(0,n.gn)([(0,s.watch)("container:click container:mousedown")],p.prototype,"onClickPrevent",null),(0,n.gn)([(0,s.watch)("handle:click")],p.prototype,"onTargetClick",null),(0,n.gn)([(0,s.watch)(":closeTuner.tune")],p.prototype,"closeToolbar",null),p=(0,n.gn)([s.component],p);var a=o(2);const d=["tune.up","tune.remove","tune.down"],f=["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n",...d];function g(e){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+e.toUpperCase()+"</text></svg>",isActive(t,o,n){var i;return(null===(i=null==n?void 0:n.target)||void 0===i?void 0:i.tagName.toLowerCase())===e},exec(t,o){if(o){t.selection.save();const n=c.i.replace(o,e,t.createInside);t.selection.restore(),t.e.fire("synchro"),t.e.fire("afterExecTune.tune",n)}return!0}}}function w(e){const t=e?"previousSibling":"nextSibling";return{icon:e?"angle-up":"angle-down",isDisabled(e,o,n){var i;return!(null===(i=null==n?void 0:n.target)||void 0===i?void 0:i[t])},exec(o,n){const i=null==n?void 0:n[t];return n&&i&&(o.selection.save(),(0,h.call)(e?c.i.before:c.i.after,i,n),o.selection.restore()),o.e.fire("synchro"),o.e.fire("afterExecTune.tune"),!0}}}a.D.prototype.tuneBlock={popup:{p:d,table:d,img:d,blockquote:d,div:d,pre:["tune.editPre",...d],h1:f,h2:f,h3:f,h4:f,h5:f,h6:f}},a.D.prototype.controls.tune={h1:g("h1"),h2:g("h2"),h3:g("h3"),h4:g("h4"),h5:g("h5"),h6:g("h6"),up:w(!0),down:w(!1),editPre:{icon:"pencil",exec(e,t){e.e.fire("editPreInPasteCode",t)}},remove:{icon:"bin",exec(e,t){c.i.safeRemove(t),e.e.fire("synchro"),e.e.fire("closeTuner.tune")}}};class k extends i.S{constructor(){super(...arguments),this.requires=["license"]}afterInit(e){this.tuner=new p(e)}hideTuner(){this.tuner.hide()}onChangeSelection(){this.j.s.isCollapsed()||this.hideTuner()}onClickInBlock(e){this.j.s.isCollapsed()&&this.tuner.show()}beforeDestruct(e){this.tuner.destruct()}}(0,n.gn)([(0,s.watch)(":outsideClick :keydown")],k.prototype,"hideTuner",null),(0,n.gn)([(0,s.watch)("j.ed:selectionchange"),(0,s.debounce)()],k.prototype,"onChangeSelection",null),(0,n.gn)([(0,s.watch)(":click")],k.prototype,"onClickInBlock",null),r.Jodit.plugins.add("tune-block",k)}},e=>e(e.s=237)])}));
|