opentiny 6.9.15 → 6.9.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opentiny",
3
- "version": "6.9.15",
3
+ "version": "6.9.17",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mild-blue/opentiny"
@@ -5,7 +5,7 @@
5
5
  (function () {
6
6
  'use strict';
7
7
 
8
- var global$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');
8
+ var global$2 = tinymce.util.Tools.resolve('tinymce.PluginManager');
9
9
 
10
10
  const fireInsertCustomChar = (editor, chr) => {
11
11
  return editor.dispatch('insertCustomChar', { chr });
@@ -188,7 +188,7 @@
188
188
  };
189
189
  const bind = (xs, f) => flatten(map(xs, f));
190
190
 
191
- var global = tinymce.util.Tools.resolve('tinymce.util.Tools');
191
+ var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
192
192
 
193
193
  const option = name => editor => editor.options.get(name);
194
194
  const register$2 = editor => {
@@ -200,7 +200,7 @@
200
200
  const getCharMap$1 = option('charmap');
201
201
  const getCharMapAppend = option('charmap_append');
202
202
 
203
- const isArray = global.isArray;
203
+ const isArray = global$1.isArray;
204
204
  const UserDefined = 'User Defined';
205
205
  const getDefaultCharMap = () => {
206
206
  return [
@@ -2876,7 +2876,7 @@
2876
2876
  ];
2877
2877
  };
2878
2878
  const charmapFilter = charmap => {
2879
- return global.grep(charmap, item => {
2879
+ return global$1.grep(charmap, item => {
2880
2880
  return isArray(item) && item.length === 2;
2881
2881
  });
2882
2882
  };
@@ -2899,7 +2899,7 @@
2899
2899
  }
2900
2900
  const userCharMapAppend = getCharMapAppend(editor);
2901
2901
  if (userCharMapAppend) {
2902
- const userDefinedGroup = global.grep(charmap, cg => cg.name === UserDefined);
2902
+ const userDefinedGroup = global$1.grep(charmap, cg => cg.name === UserDefined);
2903
2903
  if (userDefinedGroup.length) {
2904
2904
  userDefinedGroup[0].characters = [
2905
2905
  ...userDefinedGroup[0].characters,
@@ -2980,6 +2980,8 @@
2980
2980
  };
2981
2981
  const fromCodePoint = String.fromCodePoint;
2982
2982
 
2983
+ var global = tinymce.util.Tools.resolve('tinymce.util.I18n');
2984
+
2983
2985
  const charMatches = (charCode, name, lowerCasePattern) => {
2984
2986
  if (contains(fromCodePoint(charCode).toLowerCase(), lowerCasePattern)) {
2985
2987
  return true;
@@ -2991,7 +2993,7 @@
2991
2993
  const matches = [];
2992
2994
  const lowerCasePattern = pattern.toLowerCase();
2993
2995
  each(group.characters, g => {
2994
- if (charMatches(g[0], g[1], lowerCasePattern)) {
2996
+ if (charMatches(g[0], global.translate([g[1]]), lowerCasePattern)) {
2995
2997
  matches.push(g);
2996
2998
  }
2997
2999
  });
@@ -3125,7 +3127,7 @@
3125
3127
  };
3126
3128
 
3127
3129
  var Plugin = () => {
3128
- global$1.add('charmap', editor => {
3130
+ global$2.add('charmap', editor => {
3129
3131
  register$2(editor);
3130
3132
  const charMap = getCharMap(editor);
3131
3133
  register$1(editor, charMap);
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * TinyMCE version 7.0.0 (TBD)
3
3
  */
4
- !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const r=(e,r)=>{const t=((e,r)=>e.dispatch("insertCustomChar",{chr:r}))(e,r).chr;e.execCommand("mceInsertContent",!1,t)},t=e=>r=>e===r,a=e=>"array"===(e=>{const r=typeof e;return null===e?"null":"object"===r&&Array.isArray(e)?"array":"object"===r&&(t=a=e,(o=String).prototype.isPrototypeOf(t)||(null===(i=a.constructor)||void 0===i?void 0:i.name)===o.name)?"string":r;var t,a,o,i})(e);const o=t(null),i=t(void 0),s=e=>"function"==typeof e,l=()=>false;class n{constructor(e,r){this.tag=e,this.value=r}static some(e){return new n(!0,e)}static none(){return n.singletonNone}fold(e,r){return this.tag?r(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?n.some(e(this.value)):n.none()}bind(e){return this.tag?e(this.value):n.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:n.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")}static from(e){return null==e?n.none():n.some(e)}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}n.singletonNone=new n(!1);const c=Array.prototype.push,u=(e,r)=>{const t=e.length,a=new Array(t);for(let o=0;o<t;o++){const t=e[o];a[o]=r(t,o)}return a};var h=tinymce.util.Tools.resolve("tinymce.util.Tools");const d=e=>r=>r.options.get(e),w=d("charmap"),g=d("charmap_append"),m=h.isArray,p="User Defined",f=e=>{return m(e)?(r=e,h.grep(r,(e=>m(e)&&2===e.length))):"function"==typeof e?e():[];var r},b=e=>{const r=((e,r)=>{const t=w(e);t&&(r=[{name:p,characters:f(t)}]);const a=g(e);if(a){const e=h.grep(r,(e=>e.name===p));return e.length?(e[0].characters=[...e[0].characters,...f(a)],r):r.concat({name:p,characters:f(a)})}return r})(e,[{name:"Currency",characters:[[36,"dollar sign"],[162,"cent sign"],[8364,"euro sign"],[163,"pound sign"],[165,"yen sign"],[164,"currency sign"],[8352,"euro-currency sign"],[8353,"colon sign"],[8354,"cruzeiro sign"],[8355,"french franc sign"],[8356,"lira sign"],[8357,"mill sign"],[8358,"naira sign"],[8359,"peseta sign"],[8360,"rupee sign"],[8361,"won sign"],[8362,"new sheqel sign"],[8363,"dong sign"],[8365,"kip sign"],[8366,"tugrik sign"],[8367,"drachma sign"],[8368,"german penny symbol"],[8369,"peso sign"],[8370,"guarani sign"],[8371,"austral sign"],[8372,"hryvnia sign"],[8373,"cedi sign"],[8374,"livre tournois sign"],[8375,"spesmilo sign"],[8376,"tenge sign"],[8377,"indian rupee sign"],[8378,"turkish lira sign"],[8379,"nordic mark sign"],[8380,"manat sign"],[8381,"ruble sign"],[20870,"yen character"],[20803,"yuan character"],[22291,"yuan character, in hong kong and taiwan"],[22278,"yen/yuan character variant one"]]},{name:"Text",characters:[[169,"copyright sign"],[174,"registered sign"],[8482,"trade mark sign"],[8240,"per mille sign"],[181,"micro sign"],[183,"middle dot"],[8226,"bullet"],[8230,"three dot leader"],[8242,"minutes / feet"],[8243,"seconds / inches"],[167,"section sign"],[182,"paragraph sign"],[223,"sharp s / ess-zed"]]},{name:"Quotations",characters:[[8249,"single left-pointing angle quotation mark"],[8250,"single right-pointing angle quotation mark"],[171,"left pointing guillemet"],[187,"right pointing guillemet"],[8216,"left single quotation mark"],[8217,"right single quotation mark"],[8220,"left double quotation mark"],[8221,"right double quotation mark"],[8218,"single low-9 quotation mark"],[8222,"double low-9 quotation mark"],[60,"less-than sign"],[62,"greater-than sign"],[8804,"less-than or equal to"],[8805,"greater-than or equal to"],[8211,"en dash"],[8212,"em dash"],[175,"macron"],[8254,"overline"],[164,"currency sign"],[166,"broken bar"],[168,"diaeresis"],[161,"inverted exclamation mark"],[191,"turned question mark"],[710,"circumflex accent"],[732,"small tilde"],[176,"degree sign"],[8722,"minus sign"],[177,"plus-minus sign"],[247,"division sign"],[8260,"fraction slash"],[215,"multiplication sign"],[185,"superscript one"],[178,"superscript two"],[179,"superscript three"],[188,"fraction one quarter"],[189,"fraction one half"],[190,"fraction three quarters"]]},{name:"Mathematical",characters:[[8704,"for all"],[8705,"complement"],[8706,"partial differential"],[8707,"there exist"],[8708,"there does not exist"],[8709,"empty set"],[8710,"increment"],[8711,"nabla"],[8712,"element of"],[8713,"not an element of"],[8714,"small element of"],[8715,"contains as member"],[8716,"does not contain as member"],[8717,"small contains as member"],[8718,"end of proof"],[8719,"n-ary product"],[8720,"n-ary coproduct"],[8721,"n-ary summation"],[8722,"minus sign"],[8723,"minus-or-plus sign"],[8724,"dot plus"],[8725,"division slash"],[8726,"set minus"],[8727,"asterisk operator"],[8728,"ring operator"],[8729,"bullet operator"],[8730,"square root"],[8731,"cube root"],[8732,"fourth root"],[8733,"proportional to"],[8734,"infinity"],[8735,"right angle"],[8736,"angle"],[8737,"measured angle"],[8738,"spherical angle"],[8739,"divides"],[8740,"does not divide"],[8741,"parallel to"],[8742,"not parallel to"],[8743,"logical and"],[8744,"logical or"],[8745,"intersection"],[8746,"union"],[8747,"integral"],[8748,"double integral"],[8749,"triple integral"],[8750,"contour integral"],[8751,"surface integral"],[8752,"volume integral"],[8753,"clockwise integral"],[8754,"clockwise contour integral"],[8755,"anticlockwise contour integral"],[8756,"therefore"],[8757,"because"],[8758,"ratio"],[8759,"proportion"],[8760,"dot minus"],[8761,"excess"],[8762,"geometric proportion"],[8763,"homothetic"],[8764,"tilde operator"],[8765,"reversed tilde"],[8766,"inverted lazy s"],[8767,"sine wave"],[8768,"wreath product"],[8769,"not tilde"],[8770,"minus tilde"],[8771,"asymptotically equal to"],[8772,"not asymptotically equal to"],[8773,"approximately equal to"],[8774,"approximately but not actually equal to"],[8775,"neither approximately nor actually equal to"],[8776,"almost equal to"],[8777,"not almost equal to"],[8778,"almost equal or equal to"],[8779,"triple tilde"],[8780,"all equal to"],[8781,"equivalent to"],[8782,"geometrically equivalent to"],[8783,"difference between"],[8784,"approaches the limit"],[8785,"geometrically equal to"],[8786,"approximately equal to or the image of"],[8787,"image of or aproximately equal to"],[8788,"colon equals"],[8789,"equals colon"],[8790,"ring in equal to"],[8791,"ring equal to"],[8792,"corresponds to"],[8793,"estimates"],[8794,"equiangular to"],[8795,"star equals"],[8796,"delta equal to"],[8797,"equal to by definition"],[8798,"measured by"],[8799,"questioned equal to"],[8800,"not equal to"],[8801,"identical to"],[8802,"not identical to"],[8803,"strictly equivalent to"],[8804,"less-than or equal to"],[8805,"greater-than or equal to"],[8806,"less-than over equal to"],[8807,"greater-than over equal to"],[8808,"less-than but not equal to"],[8809,"greater-than but not equal to"],[8810,"much less-than"],[8811,"much greater-than"],[8812,"between"],[8813,"not equivalent to"],[8814,"not less-than"],[8815,"not greater-than"],[8816,"neither less-than nor equal to"],[8817,"neither greater-than nor equal to"],[8818,"less-than or equivalent to"],[8819,"greater-than or equivalent to"],[8820,"neither less-than nor equivalent to"],[8821,"neither greater-than nor equivalent to"],[8822,"less-than or greater-than"],[8823,"greater-than or less-than"],[8824,"neither less-than nor greater-than"],[8825,"neither greater-than nor less-than"],[8826,"precedes"],[8827,"succeeds"],[8828,"precedes or equal to"],[8829,"succeeds or equal to"],[8830,"precedes or equivalent to"],[8831,"succeeds or equivalent to"],[8832,"does not precede"],[8833,"does not succeed"],[8834,"subset of"],[8835,"superset of"],[8836,"not a subset of"],[8837,"not a superset of"],[8838,"subset of or equal to"],[8839,"superset of or equal to"],[8840,"neither a subset of nor equal to"],[8841,"neither a superset of nor equal to"],[8842,"subset of with not equal to"],[8843,"superset of with not equal to"],[8844,"multiset"],[8845,"multiset multiplication"],[8846,"multiset union"],[8847,"square image of"],[8848,"square original of"],[8849,"square image of or equal to"],[8850,"square original of or equal to"],[8851,"square cap"],[8852,"square cup"],[8853,"circled plus"],[8854,"circled minus"],[8855,"circled times"],[8856,"circled division slash"],[8857,"circled dot operator"],[8858,"circled ring operator"],[8859,"circled asterisk operator"],[8860,"circled equals"],[8861,"circled dash"],[8862,"squared plus"],[8863,"squared minus"],[8864,"squared times"],[8865,"squared dot operator"],[8866,"right tack"],[8867,"left tack"],[8868,"down tack"],[8869,"up tack"],[8870,"assertion"],[8871,"models"],[8872,"true"],[8873,"forces"],[8874,"triple vertical bar right turnstile"],[8875,"double vertical bar double right turnstile"],[8876,"does not prove"],[8877,"not true"],[8878,"does not force"],[8879,"negated double vertical bar double right turnstile"],[8880,"precedes under relation"],[8881,"succeeds under relation"],[8882,"normal subgroup of"],[8883,"contains as normal subgroup"],[8884,"normal subgroup of or equal to"],[8885,"contains as normal subgroup or equal to"],[8886,"original of"],[8887,"image of"],[8888,"multimap"],[8889,"hermittan conjugate matrix"],[8890,"intercalate"],[8891,"xor"],[8892,"nand"],[8893,"nor"],[8894,"right angle with arc"],[8895,"right triangle"],[8896,"n-ary logical and"],[8897,"n-ary logical or"],[8898,"n-ary intersection"],[8899,"n-ary union"],[8900,"diamond operator"],[8901,"dot operator"],[8902,"star operator"],[8903,"division times"],[8904,"bowtie"],[8905,"left normal factor semidirect product"],[8906,"right normal factor semidirect product"],[8907,"left semidirect product"],[8908,"right semidirect product"],[8909,"reversed tilde equals"],[8910,"curly logical or"],[8911,"curly logical and"],[8912,"double subset"],[8913,"double superset"],[8914,"double intersection"],[8915,"double union"],[8916,"pitchfork"],[8917,"equal and parallel to"],[8918,"less-than with dot"],[8919,"greater-than with dot"],[8920,"very much less-than"],[8921,"very much greater-than"],[8922,"less-than equal to or greater-than"],[8923,"greater-than equal to or less-than"],[8924,"equal to or less-than"],[8925,"equal to or greater-than"],[8926,"equal to or precedes"],[8927,"equal to or succeeds"],[8928,"does not precede or equal"],[8929,"does not succeed or equal"],[8930,"not square image of or equal to"],[8931,"not square original of or equal to"],[8932,"square image of or not equal to"],[8933,"square original of or not equal to"],[8934,"less-than but not equivalent to"],[8935,"greater-than but not equivalent to"],[8936,"precedes but not equivalent to"],[8937,"succeeds but not equivalent to"],[8938,"not normal subgroup of"],[8939,"does not contain as normal subgroup"],[8940,"not normal subgroup of or equal to"],[8941,"does not contain as normal subgroup or equal"],[8942,"vertival ellipsis"],[8943,"midline horizontal ellipsis"],[8944,"up right diagonal ellipsis"],[8945,"down right diagonal ellipsis"],[8946,"element of with long horizontal stroke"],[8947,"element of with vertical bar at end of horizontal stroke"],[8948,"small element of with vertical bar at end of horizontal stroke"],[8949,"element of with dot above"],[8950,"element of with overbar"],[8951,"small element of with overbar"],[8952,"element of with underbar"],[8953,"element of with two horizontal strokes"],[8954,"contains with long horizontal stroke"],[8955,"contains with vertical bar at end of horizontal stroke"],[8956,"small contains with vertical bar at end of horizontal stroke"],[8957,"contains with overbar"],[8958,"small contains with overbar"],[8959,"z notation bag membership"]]},{name:"Extended Latin",characters:[[192,"A - grave"],[193,"A - acute"],[194,"A - circumflex"],[195,"A - tilde"],[196,"A - diaeresis"],[197,"A - ring above"],[256,"A - macron"],[198,"ligature AE"],[199,"C - cedilla"],[200,"E - grave"],[201,"E - acute"],[202,"E - circumflex"],[203,"E - diaeresis"],[274,"E - macron"],[204,"I - grave"],[205,"I - acute"],[206,"I - circumflex"],[207,"I - diaeresis"],[298,"I - macron"],[208,"ETH"],[209,"N - tilde"],[210,"O - grave"],[211,"O - acute"],[212,"O - circumflex"],[213,"O - tilde"],[214,"O - diaeresis"],[216,"O - slash"],[332,"O - macron"],[338,"ligature OE"],[352,"S - caron"],[217,"U - grave"],[218,"U - acute"],[219,"U - circumflex"],[220,"U - diaeresis"],[362,"U - macron"],[221,"Y - acute"],[376,"Y - diaeresis"],[562,"Y - macron"],[222,"THORN"],[224,"a - grave"],[225,"a - acute"],[226,"a - circumflex"],[227,"a - tilde"],[228,"a - diaeresis"],[229,"a - ring above"],[257,"a - macron"],[230,"ligature ae"],[231,"c - cedilla"],[232,"e - grave"],[233,"e - acute"],[234,"e - circumflex"],[235,"e - diaeresis"],[275,"e - macron"],[236,"i - grave"],[237,"i - acute"],[238,"i - circumflex"],[239,"i - diaeresis"],[299,"i - macron"],[240,"eth"],[241,"n - tilde"],[242,"o - grave"],[243,"o - acute"],[244,"o - circumflex"],[245,"o - tilde"],[246,"o - diaeresis"],[248,"o slash"],[333,"o macron"],[339,"ligature oe"],[353,"s - caron"],[249,"u - grave"],[250,"u - acute"],[251,"u - circumflex"],[252,"u - diaeresis"],[363,"u - macron"],[253,"y - acute"],[254,"thorn"],[255,"y - diaeresis"],[563,"y - macron"],[913,"Alpha"],[914,"Beta"],[915,"Gamma"],[916,"Delta"],[917,"Epsilon"],[918,"Zeta"],[919,"Eta"],[920,"Theta"],[921,"Iota"],[922,"Kappa"],[923,"Lambda"],[924,"Mu"],[925,"Nu"],[926,"Xi"],[927,"Omicron"],[928,"Pi"],[929,"Rho"],[931,"Sigma"],[932,"Tau"],[933,"Upsilon"],[934,"Phi"],[935,"Chi"],[936,"Psi"],[937,"Omega"],[945,"alpha"],[946,"beta"],[947,"gamma"],[948,"delta"],[949,"epsilon"],[950,"zeta"],[951,"eta"],[952,"theta"],[953,"iota"],[954,"kappa"],[955,"lambda"],[956,"mu"],[957,"nu"],[958,"xi"],[959,"omicron"],[960,"pi"],[961,"rho"],[962,"final sigma"],[963,"sigma"],[964,"tau"],[965,"upsilon"],[966,"phi"],[967,"chi"],[968,"psi"],[969,"omega"]]},{name:"Greek Letters",characters:[[945,"small letter alpha"],[946,"small letter beta"],[947,"small letter gamma"],[948,"small letter delta"],[949,"small letter epsilon"],[950,"small letter zeta"],[951,"small letter eta"],[952,"small letter theta"],[953,"small letter iota"],[954,"small letter kappa"],[955,"small letter lambda"],[956,"small letter mu"],[957,"small letter nu"],[958,"small letter xi"],[959,"small letter omicron"],[960,"small letter pi"],[961,"small letter rho"],[962,"small letter final sigma"],[963,"small letter sigma"],[964,"small letter tau"],[965,"small letter upsilon"],[966,"small letter phi"],[967,"small letter chi"],[968,"small letter psi"],[969,"small letter omega"],[913,"capital letter alpha"],[914,"capital letter beta"],[915,"capital letter gamma"],[916,"capital letter delta"],[917,"capital letter epsilon"],[918,"capital letter zeta"],[919,"capital letter eta"],[920,"capital letter theta"],[921,"capital letter iota"],[922,"capital letter kappa"],[923,"capital letter lambda"],[924,"capital letter mu"],[925,"capital letter nu"],[926,"capital letter xi"],[927,"capital letter omicron"],[928,"capital letter pi"],[929,"capital letter rho"],[931,"capital letter sigma"],[932,"capital letter tau"],[933,"capital letter upsilon"],[934,"capital letter phi"],[935,"capital letter chi"],[936,"capital letter psi"],[937,"capital letter omega"]]},{name:"Arrows",characters:[[8592,"leftwards arrow"],[8593,"upwards arrow"],[8594,"rightwards arrow"],[8595,"downwards arrow"],[8596,"left right arrow"],[8597,"up down arrow"],[8598,"north west arrow"],[8599,"north east arrow"],[8600,"south east arrow"],[8601,"south west arrow"],[8602,"leftwards arrow with stroke"],[8603,"rightwards arrow with stroke"],[8604,"leftwards wave arrow"],[8605,"rightwards wave arrow"],[8606,"leftwards two headed arrow"],[8607,"upwards two headed arrow"],[8608,"rightwards two headed arrow"],[8609,"downwards two headed arrow"],[8610,"leftwards arrow with tail"],[8611,"rightwards arrow with tail"],[8612,"leftwards arrow from bar"],[8613,"upwards arrow from bar"],[8614,"rightwards arrow from bar"],[8615,"downwards arrow from bar"],[8616,"up down arrow with base"],[8617,"leftwards arrow with hook"],[8618,"rightwards arrow with hook"],[8619,"leftwards arrow with loop"],[8620,"rightwards arrow with loop"],[8621,"left right wave arrow"],[8622,"left right arrow with stroke"],[8623,"downwards zigzag arrow"],[8624,"upwards arrow with tip leftwards"],[8625,"upwards arrow with tip rightwards"],[8626,"downwards arrow with tip leftwards"],[8627,"downwards arrow with tip rightwards"],[8628,"rightwards arrow with corner downwards"],[8629,"downwards arrow with corner leftwards"],[8630,"anticlockwise top semicircle arrow"],[8631,"clockwise top semicircle arrow"],[8632,"north west arrow to long bar"],[8633,"leftwards arrow to bar over rightwards arrow to bar"],[8634,"anticlockwise open circle arrow"],[8635,"clockwise open circle arrow"],[8636,"leftwards harpoon with barb upwards"],[8637,"leftwards harpoon with barb downwards"],[8638,"upwards harpoon with barb rightwards"],[8639,"upwards harpoon with barb leftwards"],[8640,"rightwards harpoon with barb upwards"],[8641,"rightwards harpoon with barb downwards"],[8642,"downwards harpoon with barb rightwards"],[8643,"downwards harpoon with barb leftwards"],[8644,"rightwards arrow over leftwards arrow"],[8645,"upwards arrow leftwards of downwards arrow"],[8646,"leftwards arrow over rightwards arrow"],[8647,"leftwards paired arrows"],[8648,"upwards paired arrows"],[8649,"rightwards paired arrows"],[8650,"downwards paired arrows"],[8651,"leftwards harpoon over rightwards harpoon"],[8652,"rightwards harpoon over leftwards harpoon"],[8653,"leftwards double arrow with stroke"],[8654,"left right double arrow with stroke"],[8655,"rightwards double arrow with stroke"],[8656,"leftwards double arrow"],[8657,"upwards double arrow"],[8658,"rightwards double arrow"],[8659,"downwards double arrow"],[8660,"left right double arrow"],[8661,"up down double arrow"],[8662,"north west double arrow"],[8663,"north east double arrow"],[8664,"south east double arrow"],[8665,"south west double arrow"],[8666,"leftwards triple arrow"],[8667,"rightwards triple arrow"],[8668,"leftwards squiggle arrow"],[8669,"rightwards squiggle arrow"],[8670,"upwards arrow with double stroke"],[8671,"downwards arrow with double stroke"],[8672,"leftwards dashed arrow"],[8673,"upwards dashed arrow"],[8674,"rightwards dashed arrow"],[8675,"downwards dashed arrow"],[8676,"leftwards arrow to bar"],[8677,"rightwards arrow to bar"],[8678,"leftwards thick arrow"],[8679,"upwards thick arrow"],[8680,"rightwards thick arrow"],[8681,"downwards thick arrow"],[8682,"upwards thick arrow from bar"],[8683,"upwards thick arrow on pedestal"],[8684,"upwards thick arrow on pedestal with horizontal bar"],[8685,"upwards thick arrow on pedestal with vertical bar"],[8686,"upwards thick double arrow"],[8687,"upwards thick double arrow on pedestal"],[8688,"rightwards thick arrow from wal"],[8689,"north west arrow to corner"],[8690,"south east arrow to corner"],[8691,"up down thick arrow"],[8692,"right arrow with smal circle"],[8693,"downwards arrow leftwards of upwards arrow"],[8694,"Three rightwards arrows"],[8695,"leftwards arrow with vertical stroke"],[8696,"rightwards arrow with vertical stroke"],[8697,"left right arrow with vertical stroke"],[8698,"leftwards arrow with double vertical stroke"],[8699,"rightwards arrow with double vertical stroke"],[8700,"left right arrow with double vertical stroke"],[8701,"leftwards open-headed arrow"],[8702,"rightwards open-headed arrow"],[8703,"left right open-headed arrow"],[10146,"black small arrowhead"]]},{name:"Brackets",characters:[[40,"left parenthesis"],[41,"right parenthesis"],[91,"left square bracket"],[93,"right square bracket"],[123,"left curly bracket"],[125,"right curly bracket"],[12296,"left angle bracket"],[12297,"right angle bracket"]]},{name:"Other",characters:[[9633,"white square"],[9642,"black small square"],[9643,"white medium square"],[9745,"ballot box with check"],[9786,"white smiling face"],[9826,"black diamond suit"],[9984,"black safety scissors"],[9985,"upper blade scissors"],[9986,"black scissors"],[9987,"lower blade scissors"],[9988,"white scissors"],[9998,"lower right pencil"],[10022,"black diamond"],[10004,"heavy check mark"]]}]);return r.length>1?[{name:"All",characters:(t=r,o=e=>e.characters,(e=>{const r=[];for(let t=0,o=e.length;t<o;++t){if(!a(e[t]))throw new Error("Arr.flatten item "+t+" was not an array, input: "+e);c.apply(r,e[t])}return r})(u(t,o)))}].concat(r):r;var t,o},q=e=>{let r=e;return{get:()=>r,set:e=>{r=e}}},v=(e,r,t=0,a)=>{const o=e.indexOf(r,t);return-1!==o&&(!!i(a)||o+r.length<=a)},k=String.fromCodePoint,y=(e,r)=>{const t=[],a=r.toLowerCase();return(e=>{for(let o=0,i=e.length;o<i;o++)((e,r,t)=>!!v(k(e).toLowerCase(),t)||v(r.toLowerCase(),t)||v(r.toLowerCase().replace(/\s+/g,""),t))((r=e[o])[0],r[1],a)&&t.push(r);var r})(e.characters),u(t,(e=>({text:e[1],value:k(e[0]),icon:k(e[0])})))},x="pattern",C=(e,t)=>{const a=()=>[{label:"Search",type:"input",name:x},{type:"collection",name:"results"}],i=1===t.length?q(p):q("All"),s=(e=>{let r=null;const t=()=>{o(r)||(clearTimeout(r),r=null)};return{cancel:t,throttle:(...a)=>{t(),r=setTimeout((()=>{r=null,e.apply(null,a)}),40)}}})((e=>{const r=e.getData().pattern;((e,r)=>{var a,o;(a=t,o=e=>e.name===i.get(),((e,r,t)=>{for(let a=0,o=e.length;a<o;a++){const o=e[a];if(r(o,a))return n.some(o);if(t(o,a))break}return n.none()})(a,o,l)).each((t=>{const a=y(t,r);e.setData({results:a})}))})(e,r)})),c={title:"Special Character",size:"normal",body:1===t.length?{type:"panel",items:a()}:{type:"tabpanel",tabs:u(t,(e=>({title:e.name,name:e.name,items:a()})))},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{pattern:"",results:y(t[0],"")},onAction:(t,a)=>{"results"===a.name&&(r(e,a.value),t.close())},onTabChange:(e,r)=>{i.set(r.newTabName),s.throttle(e)},onChange:(e,r)=>{r.name===x&&s.throttle(e)}};e.windowManager.open(c).focus(x)},A=e=>r=>{const t=()=>{r.setEnabled(e.selection.isEditable())};return e.on("NodeChange",t),t(),()=>{e.off("NodeChange",t)}};e.add("charmap",(e=>{(e=>{const r=e.options.register,t=e=>s(e)||a(e);r("charmap",{processor:t}),r("charmap_append",{processor:t})})(e);const t=b(e);return((e,r)=>{e.addCommand("mceShowCharmap",(()=>{C(e,r)}))})(e,t),(e=>{const r=()=>e.execCommand("mceShowCharmap");e.ui.registry.addButton("charmap",{icon:"insert-character",tooltip:"Special character",onAction:r,onSetup:A(e)}),e.ui.registry.addMenuItem("charmap",{icon:"insert-character",text:"Special character...",onAction:r,onSetup:A(e)})})(e),((e,r)=>{e.ui.registry.addAutocompleter("charmap",{trigger:":",columns:"auto",minChars:2,fetch:(e,t)=>new Promise(((t,a)=>{t(y(r,e))})),onAction:(r,t,a)=>{e.selection.setRng(t),e.insertContent(a),r.hide()}})})(e,t[0]),(e=>({getCharMap:()=>b(e),insertChar:t=>{r(e,t)}}))(e)}))}();
4
+ !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const r=(e,r)=>{const t=((e,r)=>e.dispatch("insertCustomChar",{chr:r}))(e,r).chr;e.execCommand("mceInsertContent",!1,t)},t=e=>r=>e===r,a=e=>"array"===(e=>{const r=typeof e;return null===e?"null":"object"===r&&Array.isArray(e)?"array":"object"===r&&(t=a=e,(o=String).prototype.isPrototypeOf(t)||(null===(i=a.constructor)||void 0===i?void 0:i.name)===o.name)?"string":r;var t,a,o,i})(e);const o=t(null),i=t(void 0),s=e=>"function"==typeof e,l=()=>false;class n{constructor(e,r){this.tag=e,this.value=r}static some(e){return new n(!0,e)}static none(){return n.singletonNone}fold(e,r){return this.tag?r(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?n.some(e(this.value)):n.none()}bind(e){return this.tag?e(this.value):n.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:n.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")}static from(e){return null==e?n.none():n.some(e)}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}n.singletonNone=new n(!1);const c=Array.prototype.push,u=(e,r)=>{const t=e.length,a=new Array(t);for(let o=0;o<t;o++){const t=e[o];a[o]=r(t,o)}return a};var h=tinymce.util.Tools.resolve("tinymce.util.Tools");const d=e=>r=>r.options.get(e),w=d("charmap"),g=d("charmap_append"),m=h.isArray,p="User Defined",f=e=>{return m(e)?(r=e,h.grep(r,(e=>m(e)&&2===e.length))):"function"==typeof e?e():[];var r},b=e=>{const r=((e,r)=>{const t=w(e);t&&(r=[{name:p,characters:f(t)}]);const a=g(e);if(a){const e=h.grep(r,(e=>e.name===p));return e.length?(e[0].characters=[...e[0].characters,...f(a)],r):r.concat({name:p,characters:f(a)})}return r})(e,[{name:"Currency",characters:[[36,"dollar sign"],[162,"cent sign"],[8364,"euro sign"],[163,"pound sign"],[165,"yen sign"],[164,"currency sign"],[8352,"euro-currency sign"],[8353,"colon sign"],[8354,"cruzeiro sign"],[8355,"french franc sign"],[8356,"lira sign"],[8357,"mill sign"],[8358,"naira sign"],[8359,"peseta sign"],[8360,"rupee sign"],[8361,"won sign"],[8362,"new sheqel sign"],[8363,"dong sign"],[8365,"kip sign"],[8366,"tugrik sign"],[8367,"drachma sign"],[8368,"german penny symbol"],[8369,"peso sign"],[8370,"guarani sign"],[8371,"austral sign"],[8372,"hryvnia sign"],[8373,"cedi sign"],[8374,"livre tournois sign"],[8375,"spesmilo sign"],[8376,"tenge sign"],[8377,"indian rupee sign"],[8378,"turkish lira sign"],[8379,"nordic mark sign"],[8380,"manat sign"],[8381,"ruble sign"],[20870,"yen character"],[20803,"yuan character"],[22291,"yuan character, in hong kong and taiwan"],[22278,"yen/yuan character variant one"]]},{name:"Text",characters:[[169,"copyright sign"],[174,"registered sign"],[8482,"trade mark sign"],[8240,"per mille sign"],[181,"micro sign"],[183,"middle dot"],[8226,"bullet"],[8230,"three dot leader"],[8242,"minutes / feet"],[8243,"seconds / inches"],[167,"section sign"],[182,"paragraph sign"],[223,"sharp s / ess-zed"]]},{name:"Quotations",characters:[[8249,"single left-pointing angle quotation mark"],[8250,"single right-pointing angle quotation mark"],[171,"left pointing guillemet"],[187,"right pointing guillemet"],[8216,"left single quotation mark"],[8217,"right single quotation mark"],[8220,"left double quotation mark"],[8221,"right double quotation mark"],[8218,"single low-9 quotation mark"],[8222,"double low-9 quotation mark"],[60,"less-than sign"],[62,"greater-than sign"],[8804,"less-than or equal to"],[8805,"greater-than or equal to"],[8211,"en dash"],[8212,"em dash"],[175,"macron"],[8254,"overline"],[164,"currency sign"],[166,"broken bar"],[168,"diaeresis"],[161,"inverted exclamation mark"],[191,"turned question mark"],[710,"circumflex accent"],[732,"small tilde"],[176,"degree sign"],[8722,"minus sign"],[177,"plus-minus sign"],[247,"division sign"],[8260,"fraction slash"],[215,"multiplication sign"],[185,"superscript one"],[178,"superscript two"],[179,"superscript three"],[188,"fraction one quarter"],[189,"fraction one half"],[190,"fraction three quarters"]]},{name:"Mathematical",characters:[[8704,"for all"],[8705,"complement"],[8706,"partial differential"],[8707,"there exist"],[8708,"there does not exist"],[8709,"empty set"],[8710,"increment"],[8711,"nabla"],[8712,"element of"],[8713,"not an element of"],[8714,"small element of"],[8715,"contains as member"],[8716,"does not contain as member"],[8717,"small contains as member"],[8718,"end of proof"],[8719,"n-ary product"],[8720,"n-ary coproduct"],[8721,"n-ary summation"],[8722,"minus sign"],[8723,"minus-or-plus sign"],[8724,"dot plus"],[8725,"division slash"],[8726,"set minus"],[8727,"asterisk operator"],[8728,"ring operator"],[8729,"bullet operator"],[8730,"square root"],[8731,"cube root"],[8732,"fourth root"],[8733,"proportional to"],[8734,"infinity"],[8735,"right angle"],[8736,"angle"],[8737,"measured angle"],[8738,"spherical angle"],[8739,"divides"],[8740,"does not divide"],[8741,"parallel to"],[8742,"not parallel to"],[8743,"logical and"],[8744,"logical or"],[8745,"intersection"],[8746,"union"],[8747,"integral"],[8748,"double integral"],[8749,"triple integral"],[8750,"contour integral"],[8751,"surface integral"],[8752,"volume integral"],[8753,"clockwise integral"],[8754,"clockwise contour integral"],[8755,"anticlockwise contour integral"],[8756,"therefore"],[8757,"because"],[8758,"ratio"],[8759,"proportion"],[8760,"dot minus"],[8761,"excess"],[8762,"geometric proportion"],[8763,"homothetic"],[8764,"tilde operator"],[8765,"reversed tilde"],[8766,"inverted lazy s"],[8767,"sine wave"],[8768,"wreath product"],[8769,"not tilde"],[8770,"minus tilde"],[8771,"asymptotically equal to"],[8772,"not asymptotically equal to"],[8773,"approximately equal to"],[8774,"approximately but not actually equal to"],[8775,"neither approximately nor actually equal to"],[8776,"almost equal to"],[8777,"not almost equal to"],[8778,"almost equal or equal to"],[8779,"triple tilde"],[8780,"all equal to"],[8781,"equivalent to"],[8782,"geometrically equivalent to"],[8783,"difference between"],[8784,"approaches the limit"],[8785,"geometrically equal to"],[8786,"approximately equal to or the image of"],[8787,"image of or aproximately equal to"],[8788,"colon equals"],[8789,"equals colon"],[8790,"ring in equal to"],[8791,"ring equal to"],[8792,"corresponds to"],[8793,"estimates"],[8794,"equiangular to"],[8795,"star equals"],[8796,"delta equal to"],[8797,"equal to by definition"],[8798,"measured by"],[8799,"questioned equal to"],[8800,"not equal to"],[8801,"identical to"],[8802,"not identical to"],[8803,"strictly equivalent to"],[8804,"less-than or equal to"],[8805,"greater-than or equal to"],[8806,"less-than over equal to"],[8807,"greater-than over equal to"],[8808,"less-than but not equal to"],[8809,"greater-than but not equal to"],[8810,"much less-than"],[8811,"much greater-than"],[8812,"between"],[8813,"not equivalent to"],[8814,"not less-than"],[8815,"not greater-than"],[8816,"neither less-than nor equal to"],[8817,"neither greater-than nor equal to"],[8818,"less-than or equivalent to"],[8819,"greater-than or equivalent to"],[8820,"neither less-than nor equivalent to"],[8821,"neither greater-than nor equivalent to"],[8822,"less-than or greater-than"],[8823,"greater-than or less-than"],[8824,"neither less-than nor greater-than"],[8825,"neither greater-than nor less-than"],[8826,"precedes"],[8827,"succeeds"],[8828,"precedes or equal to"],[8829,"succeeds or equal to"],[8830,"precedes or equivalent to"],[8831,"succeeds or equivalent to"],[8832,"does not precede"],[8833,"does not succeed"],[8834,"subset of"],[8835,"superset of"],[8836,"not a subset of"],[8837,"not a superset of"],[8838,"subset of or equal to"],[8839,"superset of or equal to"],[8840,"neither a subset of nor equal to"],[8841,"neither a superset of nor equal to"],[8842,"subset of with not equal to"],[8843,"superset of with not equal to"],[8844,"multiset"],[8845,"multiset multiplication"],[8846,"multiset union"],[8847,"square image of"],[8848,"square original of"],[8849,"square image of or equal to"],[8850,"square original of or equal to"],[8851,"square cap"],[8852,"square cup"],[8853,"circled plus"],[8854,"circled minus"],[8855,"circled times"],[8856,"circled division slash"],[8857,"circled dot operator"],[8858,"circled ring operator"],[8859,"circled asterisk operator"],[8860,"circled equals"],[8861,"circled dash"],[8862,"squared plus"],[8863,"squared minus"],[8864,"squared times"],[8865,"squared dot operator"],[8866,"right tack"],[8867,"left tack"],[8868,"down tack"],[8869,"up tack"],[8870,"assertion"],[8871,"models"],[8872,"true"],[8873,"forces"],[8874,"triple vertical bar right turnstile"],[8875,"double vertical bar double right turnstile"],[8876,"does not prove"],[8877,"not true"],[8878,"does not force"],[8879,"negated double vertical bar double right turnstile"],[8880,"precedes under relation"],[8881,"succeeds under relation"],[8882,"normal subgroup of"],[8883,"contains as normal subgroup"],[8884,"normal subgroup of or equal to"],[8885,"contains as normal subgroup or equal to"],[8886,"original of"],[8887,"image of"],[8888,"multimap"],[8889,"hermittan conjugate matrix"],[8890,"intercalate"],[8891,"xor"],[8892,"nand"],[8893,"nor"],[8894,"right angle with arc"],[8895,"right triangle"],[8896,"n-ary logical and"],[8897,"n-ary logical or"],[8898,"n-ary intersection"],[8899,"n-ary union"],[8900,"diamond operator"],[8901,"dot operator"],[8902,"star operator"],[8903,"division times"],[8904,"bowtie"],[8905,"left normal factor semidirect product"],[8906,"right normal factor semidirect product"],[8907,"left semidirect product"],[8908,"right semidirect product"],[8909,"reversed tilde equals"],[8910,"curly logical or"],[8911,"curly logical and"],[8912,"double subset"],[8913,"double superset"],[8914,"double intersection"],[8915,"double union"],[8916,"pitchfork"],[8917,"equal and parallel to"],[8918,"less-than with dot"],[8919,"greater-than with dot"],[8920,"very much less-than"],[8921,"very much greater-than"],[8922,"less-than equal to or greater-than"],[8923,"greater-than equal to or less-than"],[8924,"equal to or less-than"],[8925,"equal to or greater-than"],[8926,"equal to or precedes"],[8927,"equal to or succeeds"],[8928,"does not precede or equal"],[8929,"does not succeed or equal"],[8930,"not square image of or equal to"],[8931,"not square original of or equal to"],[8932,"square image of or not equal to"],[8933,"square original of or not equal to"],[8934,"less-than but not equivalent to"],[8935,"greater-than but not equivalent to"],[8936,"precedes but not equivalent to"],[8937,"succeeds but not equivalent to"],[8938,"not normal subgroup of"],[8939,"does not contain as normal subgroup"],[8940,"not normal subgroup of or equal to"],[8941,"does not contain as normal subgroup or equal"],[8942,"vertival ellipsis"],[8943,"midline horizontal ellipsis"],[8944,"up right diagonal ellipsis"],[8945,"down right diagonal ellipsis"],[8946,"element of with long horizontal stroke"],[8947,"element of with vertical bar at end of horizontal stroke"],[8948,"small element of with vertical bar at end of horizontal stroke"],[8949,"element of with dot above"],[8950,"element of with overbar"],[8951,"small element of with overbar"],[8952,"element of with underbar"],[8953,"element of with two horizontal strokes"],[8954,"contains with long horizontal stroke"],[8955,"contains with vertical bar at end of horizontal stroke"],[8956,"small contains with vertical bar at end of horizontal stroke"],[8957,"contains with overbar"],[8958,"small contains with overbar"],[8959,"z notation bag membership"]]},{name:"Extended Latin",characters:[[192,"A - grave"],[193,"A - acute"],[194,"A - circumflex"],[195,"A - tilde"],[196,"A - diaeresis"],[197,"A - ring above"],[256,"A - macron"],[198,"ligature AE"],[199,"C - cedilla"],[200,"E - grave"],[201,"E - acute"],[202,"E - circumflex"],[203,"E - diaeresis"],[274,"E - macron"],[204,"I - grave"],[205,"I - acute"],[206,"I - circumflex"],[207,"I - diaeresis"],[298,"I - macron"],[208,"ETH"],[209,"N - tilde"],[210,"O - grave"],[211,"O - acute"],[212,"O - circumflex"],[213,"O - tilde"],[214,"O - diaeresis"],[216,"O - slash"],[332,"O - macron"],[338,"ligature OE"],[352,"S - caron"],[217,"U - grave"],[218,"U - acute"],[219,"U - circumflex"],[220,"U - diaeresis"],[362,"U - macron"],[221,"Y - acute"],[376,"Y - diaeresis"],[562,"Y - macron"],[222,"THORN"],[224,"a - grave"],[225,"a - acute"],[226,"a - circumflex"],[227,"a - tilde"],[228,"a - diaeresis"],[229,"a - ring above"],[257,"a - macron"],[230,"ligature ae"],[231,"c - cedilla"],[232,"e - grave"],[233,"e - acute"],[234,"e - circumflex"],[235,"e - diaeresis"],[275,"e - macron"],[236,"i - grave"],[237,"i - acute"],[238,"i - circumflex"],[239,"i - diaeresis"],[299,"i - macron"],[240,"eth"],[241,"n - tilde"],[242,"o - grave"],[243,"o - acute"],[244,"o - circumflex"],[245,"o - tilde"],[246,"o - diaeresis"],[248,"o slash"],[333,"o macron"],[339,"ligature oe"],[353,"s - caron"],[249,"u - grave"],[250,"u - acute"],[251,"u - circumflex"],[252,"u - diaeresis"],[363,"u - macron"],[253,"y - acute"],[254,"thorn"],[255,"y - diaeresis"],[563,"y - macron"],[913,"Alpha"],[914,"Beta"],[915,"Gamma"],[916,"Delta"],[917,"Epsilon"],[918,"Zeta"],[919,"Eta"],[920,"Theta"],[921,"Iota"],[922,"Kappa"],[923,"Lambda"],[924,"Mu"],[925,"Nu"],[926,"Xi"],[927,"Omicron"],[928,"Pi"],[929,"Rho"],[931,"Sigma"],[932,"Tau"],[933,"Upsilon"],[934,"Phi"],[935,"Chi"],[936,"Psi"],[937,"Omega"],[945,"alpha"],[946,"beta"],[947,"gamma"],[948,"delta"],[949,"epsilon"],[950,"zeta"],[951,"eta"],[952,"theta"],[953,"iota"],[954,"kappa"],[955,"lambda"],[956,"mu"],[957,"nu"],[958,"xi"],[959,"omicron"],[960,"pi"],[961,"rho"],[962,"final sigma"],[963,"sigma"],[964,"tau"],[965,"upsilon"],[966,"phi"],[967,"chi"],[968,"psi"],[969,"omega"]]},{name:"Greek Letters",characters:[[945,"small letter alpha"],[946,"small letter beta"],[947,"small letter gamma"],[948,"small letter delta"],[949,"small letter epsilon"],[950,"small letter zeta"],[951,"small letter eta"],[952,"small letter theta"],[953,"small letter iota"],[954,"small letter kappa"],[955,"small letter lambda"],[956,"small letter mu"],[957,"small letter nu"],[958,"small letter xi"],[959,"small letter omicron"],[960,"small letter pi"],[961,"small letter rho"],[962,"small letter final sigma"],[963,"small letter sigma"],[964,"small letter tau"],[965,"small letter upsilon"],[966,"small letter phi"],[967,"small letter chi"],[968,"small letter psi"],[969,"small letter omega"],[913,"capital letter alpha"],[914,"capital letter beta"],[915,"capital letter gamma"],[916,"capital letter delta"],[917,"capital letter epsilon"],[918,"capital letter zeta"],[919,"capital letter eta"],[920,"capital letter theta"],[921,"capital letter iota"],[922,"capital letter kappa"],[923,"capital letter lambda"],[924,"capital letter mu"],[925,"capital letter nu"],[926,"capital letter xi"],[927,"capital letter omicron"],[928,"capital letter pi"],[929,"capital letter rho"],[931,"capital letter sigma"],[932,"capital letter tau"],[933,"capital letter upsilon"],[934,"capital letter phi"],[935,"capital letter chi"],[936,"capital letter psi"],[937,"capital letter omega"]]},{name:"Arrows",characters:[[8592,"leftwards arrow"],[8593,"upwards arrow"],[8594,"rightwards arrow"],[8595,"downwards arrow"],[8596,"left right arrow"],[8597,"up down arrow"],[8598,"north west arrow"],[8599,"north east arrow"],[8600,"south east arrow"],[8601,"south west arrow"],[8602,"leftwards arrow with stroke"],[8603,"rightwards arrow with stroke"],[8604,"leftwards wave arrow"],[8605,"rightwards wave arrow"],[8606,"leftwards two headed arrow"],[8607,"upwards two headed arrow"],[8608,"rightwards two headed arrow"],[8609,"downwards two headed arrow"],[8610,"leftwards arrow with tail"],[8611,"rightwards arrow with tail"],[8612,"leftwards arrow from bar"],[8613,"upwards arrow from bar"],[8614,"rightwards arrow from bar"],[8615,"downwards arrow from bar"],[8616,"up down arrow with base"],[8617,"leftwards arrow with hook"],[8618,"rightwards arrow with hook"],[8619,"leftwards arrow with loop"],[8620,"rightwards arrow with loop"],[8621,"left right wave arrow"],[8622,"left right arrow with stroke"],[8623,"downwards zigzag arrow"],[8624,"upwards arrow with tip leftwards"],[8625,"upwards arrow with tip rightwards"],[8626,"downwards arrow with tip leftwards"],[8627,"downwards arrow with tip rightwards"],[8628,"rightwards arrow with corner downwards"],[8629,"downwards arrow with corner leftwards"],[8630,"anticlockwise top semicircle arrow"],[8631,"clockwise top semicircle arrow"],[8632,"north west arrow to long bar"],[8633,"leftwards arrow to bar over rightwards arrow to bar"],[8634,"anticlockwise open circle arrow"],[8635,"clockwise open circle arrow"],[8636,"leftwards harpoon with barb upwards"],[8637,"leftwards harpoon with barb downwards"],[8638,"upwards harpoon with barb rightwards"],[8639,"upwards harpoon with barb leftwards"],[8640,"rightwards harpoon with barb upwards"],[8641,"rightwards harpoon with barb downwards"],[8642,"downwards harpoon with barb rightwards"],[8643,"downwards harpoon with barb leftwards"],[8644,"rightwards arrow over leftwards arrow"],[8645,"upwards arrow leftwards of downwards arrow"],[8646,"leftwards arrow over rightwards arrow"],[8647,"leftwards paired arrows"],[8648,"upwards paired arrows"],[8649,"rightwards paired arrows"],[8650,"downwards paired arrows"],[8651,"leftwards harpoon over rightwards harpoon"],[8652,"rightwards harpoon over leftwards harpoon"],[8653,"leftwards double arrow with stroke"],[8654,"left right double arrow with stroke"],[8655,"rightwards double arrow with stroke"],[8656,"leftwards double arrow"],[8657,"upwards double arrow"],[8658,"rightwards double arrow"],[8659,"downwards double arrow"],[8660,"left right double arrow"],[8661,"up down double arrow"],[8662,"north west double arrow"],[8663,"north east double arrow"],[8664,"south east double arrow"],[8665,"south west double arrow"],[8666,"leftwards triple arrow"],[8667,"rightwards triple arrow"],[8668,"leftwards squiggle arrow"],[8669,"rightwards squiggle arrow"],[8670,"upwards arrow with double stroke"],[8671,"downwards arrow with double stroke"],[8672,"leftwards dashed arrow"],[8673,"upwards dashed arrow"],[8674,"rightwards dashed arrow"],[8675,"downwards dashed arrow"],[8676,"leftwards arrow to bar"],[8677,"rightwards arrow to bar"],[8678,"leftwards thick arrow"],[8679,"upwards thick arrow"],[8680,"rightwards thick arrow"],[8681,"downwards thick arrow"],[8682,"upwards thick arrow from bar"],[8683,"upwards thick arrow on pedestal"],[8684,"upwards thick arrow on pedestal with horizontal bar"],[8685,"upwards thick arrow on pedestal with vertical bar"],[8686,"upwards thick double arrow"],[8687,"upwards thick double arrow on pedestal"],[8688,"rightwards thick arrow from wal"],[8689,"north west arrow to corner"],[8690,"south east arrow to corner"],[8691,"up down thick arrow"],[8692,"right arrow with smal circle"],[8693,"downwards arrow leftwards of upwards arrow"],[8694,"Three rightwards arrows"],[8695,"leftwards arrow with vertical stroke"],[8696,"rightwards arrow with vertical stroke"],[8697,"left right arrow with vertical stroke"],[8698,"leftwards arrow with double vertical stroke"],[8699,"rightwards arrow with double vertical stroke"],[8700,"left right arrow with double vertical stroke"],[8701,"leftwards open-headed arrow"],[8702,"rightwards open-headed arrow"],[8703,"left right open-headed arrow"],[10146,"black small arrowhead"]]},{name:"Brackets",characters:[[40,"left parenthesis"],[41,"right parenthesis"],[91,"left square bracket"],[93,"right square bracket"],[123,"left curly bracket"],[125,"right curly bracket"],[12296,"left angle bracket"],[12297,"right angle bracket"]]},{name:"Other",characters:[[9633,"white square"],[9642,"black small square"],[9643,"white medium square"],[9745,"ballot box with check"],[9786,"white smiling face"],[9826,"black diamond suit"],[9984,"black safety scissors"],[9985,"upper blade scissors"],[9986,"black scissors"],[9987,"lower blade scissors"],[9988,"white scissors"],[9998,"lower right pencil"],[10022,"black diamond"],[10004,"heavy check mark"]]}]);return r.length>1?[{name:"All",characters:(t=r,o=e=>e.characters,(e=>{const r=[];for(let t=0,o=e.length;t<o;++t){if(!a(e[t]))throw new Error("Arr.flatten item "+t+" was not an array, input: "+e);c.apply(r,e[t])}return r})(u(t,o)))}].concat(r):r;var t,o},q=e=>{let r=e;return{get:()=>r,set:e=>{r=e}}},v=(e,r,t=0,a)=>{const o=e.indexOf(r,t);return-1!==o&&(!!i(a)||o+r.length<=a)},k=String.fromCodePoint;var y=tinymce.util.Tools.resolve("tinymce.util.I18n");const x=(e,r)=>{const t=[],a=r.toLowerCase();return(e=>{for(let o=0,i=e.length;o<i;o++)((e,r,t)=>!!v(k(e).toLowerCase(),t)||v(r.toLowerCase(),t)||v(r.toLowerCase().replace(/\s+/g,""),t))((r=e[o])[0],y.translate([r[1]]),a)&&t.push(r);var r})(e.characters),u(t,(e=>({text:e[1],value:k(e[0]),icon:k(e[0])})))},C="pattern",A=(e,t)=>{const a=()=>[{label:"Search",type:"input",name:C},{type:"collection",name:"results"}],i=1===t.length?q(p):q("All"),s=(e=>{let r=null;const t=()=>{o(r)||(clearTimeout(r),r=null)};return{cancel:t,throttle:(...a)=>{t(),r=setTimeout((()=>{r=null,e.apply(null,a)}),40)}}})((e=>{const r=e.getData().pattern;((e,r)=>{var a,o;(a=t,o=e=>e.name===i.get(),((e,r,t)=>{for(let a=0,o=e.length;a<o;a++){const o=e[a];if(r(o,a))return n.some(o);if(t(o,a))break}return n.none()})(a,o,l)).each((t=>{const a=x(t,r);e.setData({results:a})}))})(e,r)})),c={title:"Special Character",size:"normal",body:1===t.length?{type:"panel",items:a()}:{type:"tabpanel",tabs:u(t,(e=>({title:e.name,name:e.name,items:a()})))},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{pattern:"",results:x(t[0],"")},onAction:(t,a)=>{"results"===a.name&&(r(e,a.value),t.close())},onTabChange:(e,r)=>{i.set(r.newTabName),s.throttle(e)},onChange:(e,r)=>{r.name===C&&s.throttle(e)}};e.windowManager.open(c).focus(C)},O=e=>r=>{const t=()=>{r.setEnabled(e.selection.isEditable())};return e.on("NodeChange",t),t(),()=>{e.off("NodeChange",t)}};e.add("charmap",(e=>{(e=>{const r=e.options.register,t=e=>s(e)||a(e);r("charmap",{processor:t}),r("charmap_append",{processor:t})})(e);const t=b(e);return((e,r)=>{e.addCommand("mceShowCharmap",(()=>{A(e,r)}))})(e,t),(e=>{const r=()=>e.execCommand("mceShowCharmap");e.ui.registry.addButton("charmap",{icon:"insert-character",tooltip:"Special character",onAction:r,onSetup:O(e)}),e.ui.registry.addMenuItem("charmap",{icon:"insert-character",text:"Special character...",onAction:r,onSetup:O(e)})})(e),((e,r)=>{e.ui.registry.addAutocompleter("charmap",{trigger:":",columns:"auto",minChars:2,fetch:(e,t)=>new Promise(((t,a)=>{t(x(r,e))})),onAction:(r,t,a)=>{e.selection.setRng(t),e.insertContent(a),r.hide()}})})(e,t[0]),(e=>({getCharMap:()=>b(e),insertChar:t=>{r(e,t)}}))(e)}))}();
@@ -421,16 +421,16 @@
421
421
  const addToEditor = editor => {
422
422
  const isEditable = node => editor.dom.isEditable(node);
423
423
  const isInEditableContext = el => isEditable(el.parentElement);
424
+ const isPagebreak = node => has(SugarElement.fromDom(node), 'mce-pagebreak');
424
425
  const isImage = node => {
425
426
  const isImageFigure = node.nodeName === 'FIGURE' && /image/i.test(node.className);
426
427
  const isImage = node.nodeName === 'IMG' || isImageFigure;
427
- const isPagebreak = has(SugarElement.fromDom(node), 'mce-pagebreak');
428
- return isImage && isInEditableContext(node) && !isPagebreak;
428
+ return isImage && isInEditableContext(node) && !isPagebreak(node);
429
429
  };
430
430
  const imageToolbarItems = getImageToolbarItems(editor);
431
431
  if (imageToolbarItems.length > 0) {
432
432
  editor.ui.registry.addContextToolbar('imageselection', {
433
- predicate: isImage,
433
+ predicate: node => isImage(node),
434
434
  items: imageToolbarItems,
435
435
  position: 'node'
436
436
  });
@@ -438,7 +438,7 @@
438
438
  const textToolbarItems = getTextSelectionToolbarItems(editor);
439
439
  if (textToolbarItems.length > 0) {
440
440
  editor.ui.registry.addContextToolbar('textselection', {
441
- predicate: node => !isImage(node) && !editor.selection.isCollapsed() && isEditable(node),
441
+ predicate: node => !isImage(node) && !isPagebreak(node) && !editor.selection.isCollapsed() && isEditable(node) && !isPagebreak(node),
442
442
  items: textToolbarItems,
443
443
  position: 'selection',
444
444
  scope: 'editor'
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * TinyMCE version 7.0.0 (TBD)
3
3
  */
4
- !function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=t=>e=>typeof e===t,o=t=>"string"===(t=>{const e=typeof t;return null===t?"null":"object"===e&&Array.isArray(t)?"array":"object"===e&&(o=n=t,(r=String).prototype.isPrototypeOf(o)||(null===(i=n.constructor)||void 0===i?void 0:i.name)===r.name)?"string":e;var o,n,r,i})(t);const n=e("boolean"),r=e("function"),i=t=>e=>e.options.get(t),s=i("quickbars_selection_toolbar"),a=i("quickbars_insert_toolbar"),l=i("quickbars_image_toolbar");let c=0;var u=tinymce.util.Tools.resolve("tinymce.util.Delay");const d=t=>{t.ui.registry.addButton("quickimage",{icon:"image",tooltip:"Insert image",onAction:()=>{(t=>new Promise((e=>{let o=!1;const n=document.createElement("input");n.type="file",n.accept="image/*",n.style.position="fixed",n.style.left="0",n.style.top="0",n.style.opacity="0.001",document.body.appendChild(n);const r=t=>{var r;o||(null===(r=n.parentNode)||void 0===r||r.removeChild(n),o=!0,e(t))},i=t=>{r(Array.prototype.slice.call(t.target.files))};n.addEventListener("input",i),n.addEventListener("change",i);const s=e=>{const n=()=>{r([])};o||("focusin"===e.type?u.setEditorTimeout(t,n,1e3):n()),t.off("focusin remove",s)};t.on("focusin remove",s),n.click()})))(t).then((e=>{if(e.length>0){const o=e[0];(t=>new Promise((e=>{const o=new FileReader;o.onloadend=()=>{e(o.result.split(",")[1])},o.readAsDataURL(t)})))(o).then((e=>{((t,e,o)=>{const n=t.editorUpload.blobCache,r=n.create((()=>{const t=(new Date).getTime(),e=Math.floor(1e9*Math.random());return c++,"mceu_"+e+c+String(t)})(),o,e);n.add(r);const i=new Image;i.src=r.blobUri(),i.onload=()=>{const e=t.dom.select(".mce-content-body")[0],o=e?parseInt(window.getComputedStyle(e).width):300;t.insertContent(t.dom.createHTML("img",{src:r.blobUri(),width:`${Math.min(i.naturalWidth,o)}px`}))},i.onerror=t=>{console.error("Failed to load the image blob:",t)}})(t,e,o)}))}}))}}),t.ui.registry.addButton("quicktable",{icon:"table",tooltip:"Insert table",onAction:()=>{(t=>{t.execCommand("mceInsertTable",!1,{rows:2,columns:2})})(t)}})},m=()=>false;class h{constructor(t,e){this.tag=t,this.value=e}static some(t){return new h(!0,t)}static none(){return h.singletonNone}fold(t,e){return this.tag?e(this.value):t()}isSome(){return this.tag}isNone(){return!this.tag}map(t){return this.tag?h.some(t(this.value)):h.none()}bind(t){return this.tag?t(this.value):h.none()}exists(t){return this.tag&&t(this.value)}forall(t){return!this.tag||t(this.value)}filter(t){return!this.tag||t(this.value)?this:h.none()}getOr(t){return this.tag?this.value:t}or(t){return this.tag?this:t}getOrThunk(t){return this.tag?this.value:t()}orThunk(t){return this.tag?this:t()}getOrDie(t){if(this.tag)return this.value;throw new Error(null!=t?t:"Called getOrDie on None")}static from(t){return null==t?h.none():h.some(t)}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(t){this.tag&&t(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}h.singletonNone=new h(!1),"undefined"!=typeof window?window:Function("return this;")();var g=(t,e,o,n,i)=>t(o,n)?h.some(o):r(i)&&i(o)?h.none():e(o,n,i);const b=t=>{if(null==t)throw new Error("Node cannot be null or undefined");return{dom:t}},p=b,v=(t,e)=>{const o=t.dom;if(1!==o.nodeType)return!1;{const t=o;if(void 0!==t.matches)return t.matches(e);if(void 0!==t.msMatchesSelector)return t.msMatchesSelector(e);if(void 0!==t.webkitMatchesSelector)return t.webkitMatchesSelector(e);if(void 0!==t.mozMatchesSelector)return t.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")}},f=(t,e,o)=>{let n=t.dom;const i=r(o)?o:m;for(;n.parentNode;){n=n.parentNode;const t=p(n);if(e(t))return h.some(t);if(i(t))break}return h.none()},y=(t,e,o)=>f(t,(t=>v(t,e)),o),w=t=>{const e=a(t);e.length>0&&t.ui.registry.addContextToolbar("quickblock",{predicate:e=>{const o=p(e),n=t.schema.getTextBlockElements(),r=e=>e.dom===t.getBody();return!(t=>{const e=t.dom;return!(!e||!e.hasAttribute)&&e.hasAttribute("data-mce-bogus")})(o)&&((t,e,o)=>g(((t,e)=>v(t,e)),y,t,'table,[data-mce-bogus="all"]',o))(o,0,r).fold((()=>((t,e,o)=>((t,e,o)=>g(((t,e)=>e(t)),f,t,e,o))(t,e,o).isSome())(o,(e=>e.dom.nodeName.toLowerCase()in n&&t.dom.isEmpty(e.dom)),r)),m)},items:e,position:"line",scope:"editor"})};t.add("quickbars",(t=>{(t=>{const e=t.options.register,r=t=>e=>{const r=n(e)||o(e);return r?n(e)?{value:e?t:"",valid:r}:{value:e.trim(),valid:r}:{valid:!1,message:"Must be a boolean or string."}},i="bold italic | quicklink h2 h3 blockquote";e("quickbars_selection_toolbar",{processor:r(i),default:i});const s="quickimage quicktable";e("quickbars_insert_toolbar",{processor:r(s),default:s});const a="alignleft aligncenter alignright";e("quickbars_image_toolbar",{processor:r(a),default:a})})(t),d(t),w(t),(t=>{const e=e=>t.dom.isEditable(e),o=t=>{const o="FIGURE"===t.nodeName&&/image/i.test(t.className),n="IMG"===t.nodeName||o,r=(t=>void 0!==t.dom.classList)(i=p(t))&&i.dom.classList.contains("mce-pagebreak");var i;return n&&e(t.parentElement)&&!r},n=l(t);n.length>0&&t.ui.registry.addContextToolbar("imageselection",{predicate:o,items:n,position:"node"});const r=s(t);r.length>0&&t.ui.registry.addContextToolbar("textselection",{predicate:n=>!o(n)&&!t.selection.isCollapsed()&&e(n),items:r,position:"selection",scope:"editor"})})(t)}))}();
4
+ !function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=t=>e=>typeof e===t,o=t=>"string"===(t=>{const e=typeof t;return null===t?"null":"object"===e&&Array.isArray(t)?"array":"object"===e&&(o=n=t,(r=String).prototype.isPrototypeOf(o)||(null===(i=n.constructor)||void 0===i?void 0:i.name)===r.name)?"string":e;var o,n,r,i})(t);const n=e("boolean"),r=e("function"),i=t=>e=>e.options.get(t),s=i("quickbars_selection_toolbar"),a=i("quickbars_insert_toolbar"),l=i("quickbars_image_toolbar");let c=0;var u=tinymce.util.Tools.resolve("tinymce.util.Delay");const d=t=>{t.ui.registry.addButton("quickimage",{icon:"image",tooltip:"Insert image",onAction:()=>{(t=>new Promise((e=>{let o=!1;const n=document.createElement("input");n.type="file",n.accept="image/*",n.style.position="fixed",n.style.left="0",n.style.top="0",n.style.opacity="0.001",document.body.appendChild(n);const r=t=>{var r;o||(null===(r=n.parentNode)||void 0===r||r.removeChild(n),o=!0,e(t))},i=t=>{r(Array.prototype.slice.call(t.target.files))};n.addEventListener("input",i),n.addEventListener("change",i);const s=e=>{const n=()=>{r([])};o||("focusin"===e.type?u.setEditorTimeout(t,n,1e3):n()),t.off("focusin remove",s)};t.on("focusin remove",s),n.click()})))(t).then((e=>{if(e.length>0){const o=e[0];(t=>new Promise((e=>{const o=new FileReader;o.onloadend=()=>{e(o.result.split(",")[1])},o.readAsDataURL(t)})))(o).then((e=>{((t,e,o)=>{const n=t.editorUpload.blobCache,r=n.create((()=>{const t=(new Date).getTime(),e=Math.floor(1e9*Math.random());return c++,"mceu_"+e+c+String(t)})(),o,e);n.add(r);const i=new Image;i.src=r.blobUri(),i.onload=()=>{const e=t.dom.select(".mce-content-body")[0],o=e?parseInt(window.getComputedStyle(e).width):300;t.insertContent(t.dom.createHTML("img",{src:r.blobUri(),width:`${Math.min(i.naturalWidth,o)}px`}))},i.onerror=t=>{console.error("Failed to load the image blob:",t)}})(t,e,o)}))}}))}}),t.ui.registry.addButton("quicktable",{icon:"table",tooltip:"Insert table",onAction:()=>{(t=>{t.execCommand("mceInsertTable",!1,{rows:2,columns:2})})(t)}})},m=()=>false;class h{constructor(t,e){this.tag=t,this.value=e}static some(t){return new h(!0,t)}static none(){return h.singletonNone}fold(t,e){return this.tag?e(this.value):t()}isSome(){return this.tag}isNone(){return!this.tag}map(t){return this.tag?h.some(t(this.value)):h.none()}bind(t){return this.tag?t(this.value):h.none()}exists(t){return this.tag&&t(this.value)}forall(t){return!this.tag||t(this.value)}filter(t){return!this.tag||t(this.value)?this:h.none()}getOr(t){return this.tag?this.value:t}or(t){return this.tag?this:t}getOrThunk(t){return this.tag?this.value:t()}orThunk(t){return this.tag?this:t()}getOrDie(t){if(this.tag)return this.value;throw new Error(null!=t?t:"Called getOrDie on None")}static from(t){return null==t?h.none():h.some(t)}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(t){this.tag&&t(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}h.singletonNone=new h(!1),"undefined"!=typeof window?window:Function("return this;")();var g=(t,e,o,n,i)=>t(o,n)?h.some(o):r(i)&&i(o)?h.none():e(o,n,i);const b=t=>{if(null==t)throw new Error("Node cannot be null or undefined");return{dom:t}},p=b,v=(t,e)=>{const o=t.dom;if(1!==o.nodeType)return!1;{const t=o;if(void 0!==t.matches)return t.matches(e);if(void 0!==t.msMatchesSelector)return t.msMatchesSelector(e);if(void 0!==t.webkitMatchesSelector)return t.webkitMatchesSelector(e);if(void 0!==t.mozMatchesSelector)return t.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")}},f=(t,e,o)=>{let n=t.dom;const i=r(o)?o:m;for(;n.parentNode;){n=n.parentNode;const t=p(n);if(e(t))return h.some(t);if(i(t))break}return h.none()},y=(t,e,o)=>f(t,(t=>v(t,e)),o),w=t=>{const e=a(t);e.length>0&&t.ui.registry.addContextToolbar("quickblock",{predicate:e=>{const o=p(e),n=t.schema.getTextBlockElements(),r=e=>e.dom===t.getBody();return!(t=>{const e=t.dom;return!(!e||!e.hasAttribute)&&e.hasAttribute("data-mce-bogus")})(o)&&((t,e,o)=>g(((t,e)=>v(t,e)),y,t,'table,[data-mce-bogus="all"]',o))(o,0,r).fold((()=>((t,e,o)=>((t,e,o)=>g(((t,e)=>e(t)),f,t,e,o))(t,e,o).isSome())(o,(e=>e.dom.nodeName.toLowerCase()in n&&t.dom.isEmpty(e.dom)),r)),m)},items:e,position:"line",scope:"editor"})};t.add("quickbars",(t=>{(t=>{const e=t.options.register,r=t=>e=>{const r=n(e)||o(e);return r?n(e)?{value:e?t:"",valid:r}:{value:e.trim(),valid:r}:{valid:!1,message:"Must be a boolean or string."}},i="bold italic | quicklink h2 h3 blockquote";e("quickbars_selection_toolbar",{processor:r(i),default:i});const s="quickimage quicktable";e("quickbars_insert_toolbar",{processor:r(s),default:s});const a="alignleft aligncenter alignright";e("quickbars_image_toolbar",{processor:r(a),default:a})})(t),d(t),w(t),(t=>{const e=e=>t.dom.isEditable(e),o=t=>{return(t=>void 0!==t.dom.classList)(e=p(t))&&e.dom.classList.contains("mce-pagebreak");var e},n=t=>{const n="FIGURE"===t.nodeName&&/image/i.test(t.className);return("IMG"===t.nodeName||n)&&e(t.parentElement)&&!o(t)},r=l(t);r.length>0&&t.ui.registry.addContextToolbar("imageselection",{predicate:t=>n(t),items:r,position:"node"});const i=s(t);i.length>0&&t.ui.registry.addContextToolbar("textselection",{predicate:r=>!n(r)&&!o(r)&&!t.selection.isCollapsed()&&e(r)&&!o(r),items:i,position:"selection",scope:"editor"})})(t)}))}();