activeadmin_trumbowyg 0.2.12 → 0.2.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -1
  3. data/app/assets/javascripts/activeadmin/trumbowyg/langs/bn.js +62 -0
  4. data/app/assets/javascripts/activeadmin/trumbowyg/langs/bn.min.js +9 -0
  5. data/app/assets/javascripts/activeadmin/trumbowyg/langs/et.js +65 -0
  6. data/app/assets/javascripts/activeadmin/trumbowyg/langs/et.min.js +9 -0
  7. data/app/assets/javascripts/activeadmin/trumbowyg/langs/sl.js +9 -1
  8. data/app/assets/javascripts/activeadmin/trumbowyg/langs/sl.min.js +7 -0
  9. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/allowtagsfrompaste/trumbowyg.allowtagsfrompaste.js +3 -3
  10. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/allowtagsfrompaste/trumbowyg.allowtagsfrompaste.min.js +1 -1
  11. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/base64/trumbowyg.base64.js +6 -0
  12. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/base64/trumbowyg.base64.min.js +1 -1
  13. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.min.js +1 -1
  14. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/trumbowyg.colors.js +10 -2
  15. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/trumbowyg.colors.min.js +1 -1
  16. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/ui/sass/trumbowyg.colors.scss +1 -1
  17. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/ui/trumbowyg.colors.css +3 -2
  18. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/ui/trumbowyg.colors.min.css +2 -2
  19. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/trumbowyg.emoji.js +3 -0
  20. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/trumbowyg.emoji.min.js +1 -1
  21. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/ui/sass/trumbowyg.emoji.scss +1 -1
  22. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/ui/trumbowyg.emoji.css +3 -2
  23. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/ui/trumbowyg.emoji.min.css +2 -2
  24. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/fontfamily/trumbowyg.fontfamily.js +4 -1
  25. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/fontfamily/trumbowyg.fontfamily.min.js +1 -1
  26. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/fontsize/trumbowyg.fontsize.js +25 -4
  27. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/fontsize/trumbowyg.fontsize.min.js +1 -1
  28. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/trumbowyg.giphy.js +6 -0
  29. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/trumbowyg.giphy.min.js +1 -1
  30. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/ui/sass/trumbowyg.giphy.scss +1 -1
  31. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/ui/trumbowyg.giphy.css +13 -6
  32. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/ui/trumbowyg.giphy.min.css +2 -2
  33. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/highlight/trumbowyg.highlight.js +223 -22
  34. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/highlight/trumbowyg.highlight.min.js +1 -1
  35. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/highlight/ui/sass/trumbowyg.highlight.scss +1 -1
  36. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/highlight/ui/trumbowyg.highlight.css +1 -1
  37. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/highlight/ui/trumbowyg.highlight.min.css +1 -1
  38. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/history/trumbowyg.history.js +6 -0
  39. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/history/trumbowyg.history.min.js +1 -1
  40. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/indent/trumbowyg.indent.js +9 -5
  41. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/indent/trumbowyg.indent.min.js +1 -1
  42. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/insertaudio/trumbowyg.insertaudio.js +3 -0
  43. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/insertaudio/trumbowyg.insertaudio.min.js +1 -1
  44. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/lineheight/trumbowyg.lineheight.js +9 -0
  45. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/lineheight/trumbowyg.lineheight.min.js +1 -1
  46. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mathml/trumbowyg.mathml.js +5 -0
  47. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mathml/trumbowyg.mathml.min.js +1 -1
  48. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mathml/ui/sass/trumbowyg.mathml.scss +1 -1
  49. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mathml/ui/trumbowyg.mathml.css +3 -2
  50. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mathml/ui/trumbowyg.mathml.min.css +2 -2
  51. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mention/trumbowyg.mention.js +3 -0
  52. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mention/trumbowyg.mention.min.js +1 -1
  53. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mention/ui/sass/trumbowyg.mention.scss +1 -1
  54. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mention/ui/trumbowyg.mention.css +6 -2
  55. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mention/ui/trumbowyg.mention.min.css +2 -2
  56. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/noembed/trumbowyg.noembed.js +4 -0
  57. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/noembed/trumbowyg.noembed.min.js +1 -1
  58. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/pasteembed/trumbowyg.pasteembed.min.js +1 -1
  59. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/pasteimage/trumbowyg.pasteimage.min.js +1 -1
  60. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/preformatted/trumbowyg.preformatted.js +3 -0
  61. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/preformatted/trumbowyg.preformatted.min.js +1 -1
  62. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/resizimg/trumbowyg.resizimg.js +2 -2
  63. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/resizimg/trumbowyg.resizimg.min.js +1 -1
  64. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/ruby/trumbowyg.ruby.js +5 -0
  65. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/ruby/trumbowyg.ruby.min.js +1 -1
  66. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/trumbowyg.specialchars.js +3 -0
  67. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/trumbowyg.specialchars.min.js +1 -1
  68. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/ui/sass/trumbowyg.specialchars.scss +1 -1
  69. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/ui/trumbowyg.specialchars.css +3 -2
  70. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/ui/trumbowyg.specialchars.min.css +2 -2
  71. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/trumbowyg.table.js +28 -4
  72. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/trumbowyg.table.min.js +1 -1
  73. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/ui/sass/trumbowyg.table.scss +1 -1
  74. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/ui/trumbowyg.table.css +5 -3
  75. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/ui/trumbowyg.table.min.css +2 -2
  76. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/template/trumbowyg.template.js +3 -0
  77. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/template/trumbowyg.template.min.js +1 -1
  78. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/upload/trumbowyg.upload.js +5 -0
  79. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/upload/trumbowyg.upload.min.js +1 -1
  80. data/app/assets/javascripts/activeadmin/trumbowyg/trumbowyg.js +25 -16
  81. data/app/assets/javascripts/activeadmin/trumbowyg/trumbowyg.min.js +12 -2
  82. data/app/assets/stylesheets/activeadmin/trumbowyg/trumbowyg.scss +68 -56
  83. data/lib/activeadmin/trumbowyg/version.rb +1 -2
  84. metadata +7 -145
  85. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/resizimg/resizable-resolveconflict.js +0 -20
  86. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/resizimg/resizable-resolveconflict.min.js +0 -1
@@ -1 +1 @@
1
- !function(e){"use strict";function t(t,l){t.$ed.focus(),t.saveRange(),t.execCmd("fontSize","1"),t.$ed.find('font[size="1"]').replaceWith(function(){return e("<span/>",{css:{"font-size":l},html:this.innerHTML})}),e(t.range.startContainer.parentElement).find('span[style=""]').contents().unwrap(),t.restoreRange(),t.syncCode(),t.$c.trigger("tbwchange")}function l(l){var a=[];if(e.each(l.o.plugins.fontsize.sizeList,function(e,s){l.addBtnDef("fontsize_"+s,{text:'<span style="font-size: '+s+';">'+(l.lang.fontsizes[s]||s)+"</span>",hasIcon:!1,fn:function(){t(l,s)}}),a.push("fontsize_"+s)}),l.o.plugins.fontsize.allowCustomSize){var s="fontsize_custom",o={fn:function(){l.openModalInsert(l.lang.fontCustomSize.title,{size:{label:l.lang.fontCustomSize.label,value:l.lang.fontCustomSize.value}},function(e){return t(l,e.size),!0})},text:'<span style="font-size: medium;">'+l.lang.fontsizes.custom+"</span>",hasIcon:!1};l.addBtnDef(s,o),a.push(s)}return a}e.extend(!0,e.trumbowyg,{langs:{en:{fontsize:"Font size",fontsizes:{"x-small":"Extra small",small:"Small",medium:"Regular",large:"Large","x-large":"Extra large",custom:"Custom"},fontCustomSize:{title:"Custom Font Size",label:"Font Size",value:"48px"}},da:{fontsize:"Skriftstørrelse",fontsizes:{"x-small":"Ekstra lille",small:"Lille",medium:"Normal",large:"Stor","x-large":"Ekstra stor",custom:"Brugerdefineret"}},de:{fontsize:"Schriftgröße",fontsizes:{"x-small":"Sehr klein",small:"Klein",medium:"Normal",large:"Groß","x-large":"Sehr groß",custom:"Benutzerdefiniert"},fontCustomSize:{title:"Benutzerdefinierte Schriftgröße",label:"Schriftgröße",value:"48px"}},es:{fontsize:"Tamaño de Fuente",fontsizes:{"x-small":"Extra pequeña",small:"Pegueña",medium:"Regular",large:"Grande","x-large":"Extra Grande",custom:"Customizada"},fontCustomSize:{title:"Tamaño de Fuente Customizada",label:"Tamaño de Fuente",value:"48px"}},fr:{fontsize:"Taille de la police",fontsizes:{"x-small":"Très petit",small:"Petit",medium:"Normal",large:"Grand","x-large":"Très grand",custom:"Taille personnalisée"},fontCustomSize:{title:"Taille de police personnalisée",label:"Taille de la police",value:"48px"}},hu:{fontsize:"Betű méret",fontsizes:{"x-small":"Extra kicsi",small:"Kicsi",medium:"Normális",large:"Nagy","x-large":"Extra nagy",custom:"Egyedi"},fontCustomSize:{title:"Egyedi betű méret",label:"Betű méret",value:"48px"}},it:{fontsize:"Dimensioni del testo",fontsizes:{"x-small":"Molto piccolo",small:"piccolo",regular:"normale",large:"grande","x-large":"Molto grande",custom:"Personalizzato"},fontCustomSize:{title:"Dimensioni del testo personalizzato",label:"Dimensioni del testo",value:"48px"}},ko:{fontsize:"글꼴 크기",fontsizes:{"x-small":"아주 작게",small:"작게",medium:"보통",large:"크게","x-large":"아주 크게",custom:"사용자 지정"},fontCustomSize:{title:"사용자 지정 글꼴 크기",label:"글꼴 크기",value:"48px"}},nl:{fontsize:"Lettergrootte",fontsizes:{"x-small":"Extra klein",small:"Klein",medium:"Normaal",large:"Groot","x-large":"Extra groot",custom:"Tilpasset"}},pt_br:{fontsize:"Tamanho da fonte",fontsizes:{"x-small":"Extra pequeno",small:"Pequeno",regular:"Médio",large:"Grande","x-large":"Extra grande",custom:"Personalizado"},fontCustomSize:{title:"Tamanho de Fonte Personalizado",label:"Tamanho de Fonte",value:"48px"}},tr:{fontsize:"Yazı Boyutu",fontsizes:{"x-small":"Çok Küçük",small:"Küçük",medium:"Normal",large:"Büyük","x-large":"Çok Büyük",custom:"Görenek"}},zh_tw:{fontsize:"字體大小",fontsizes:{"x-small":"最小",small:"小",medium:"中",large:"大","x-large":"最大",custom:"自訂大小"},fontCustomSize:{title:"自訂義字體大小",label:"字體大小",value:"48px"}}}});var a={sizeList:["x-small","small","medium","large","x-large"],allowCustomSize:!0};e.extend(!0,e.trumbowyg,{plugins:{fontsize:{init:function(t){t.o.plugins.fontsize=e.extend({},a,t.o.plugins.fontsize||{}),t.addBtnDef("fontsize",{dropdown:l(t)})}}}})}(jQuery);
1
+ !function(e){"use strict";e.extend(!0,e.trumbowyg,{langs:{en:{fontsize:"Font size",fontsizes:{"x-small":"Extra small",small:"Small",medium:"Regular",large:"Large","x-large":"Extra large",custom:"Custom"},fontCustomSize:{title:"Custom Font Size",label:"Font Size",value:"48px"}},da:{fontsize:"Skriftstørrelse",fontsizes:{"x-small":"Ekstra lille",small:"Lille",medium:"Normal",large:"Stor","x-large":"Ekstra stor",custom:"Brugerdefineret"}},de:{fontsize:"Schriftgröße",fontsizes:{"x-small":"Sehr klein",small:"Klein",medium:"Normal",large:"Groß","x-large":"Sehr groß",custom:"Benutzerdefiniert"},fontCustomSize:{title:"Benutzerdefinierte Schriftgröße",label:"Schriftgröße",value:"48px"}},es:{fontsize:"Tamaño de Fuente",fontsizes:{"x-small":"Extra pequeña",small:"Pegueña",medium:"Regular",large:"Grande","x-large":"Extra Grande",custom:"Customizada"},fontCustomSize:{title:"Tamaño de Fuente Customizada",label:"Tamaño de Fuente",value:"48px"}},et:{fontsize:"Teksti suurus",fontsizes:{"x-small":"Väga väike",small:"Väike",medium:"Tavaline",large:"Suur","x-large":"Väga suur",custom:"Määra ise"},fontCustomSize:{title:"Kohandatud teksti suurus",label:"Teksti suurus",value:"48px"}},fr:{fontsize:"Taille de la police",fontsizes:{"x-small":"Très petit",small:"Petit",medium:"Normal",large:"Grand","x-large":"Très grand",custom:"Taille personnalisée"},fontCustomSize:{title:"Taille de police personnalisée",label:"Taille de la police",value:"48px"}},hu:{fontsize:"Betű méret",fontsizes:{"x-small":"Extra kicsi",small:"Kicsi",medium:"Normális",large:"Nagy","x-large":"Extra nagy",custom:"Egyedi"},fontCustomSize:{title:"Egyedi betű méret",label:"Betű méret",value:"48px"}},it:{fontsize:"Dimensioni del testo",fontsizes:{"x-small":"Molto piccolo",small:"piccolo",regular:"normale",large:"grande","x-large":"Molto grande",custom:"Personalizzato"},fontCustomSize:{title:"Dimensioni del testo personalizzato",label:"Dimensioni del testo",value:"48px"}},ko:{fontsize:"글꼴 크기",fontsizes:{"x-small":"아주 작게",small:"작게",medium:"보통",large:"크게","x-large":"아주 크게",custom:"사용자 지정"},fontCustomSize:{title:"사용자 지정 글꼴 크기",label:"글꼴 크기",value:"48px"}},nl:{fontsize:"Lettergrootte",fontsizes:{"x-small":"Extra klein",small:"Klein",medium:"Normaal",large:"Groot","x-large":"Extra groot",custom:"Tilpasset"}},pt_br:{fontsize:"Tamanho da fonte",fontsizes:{"x-small":"Extra pequeno",small:"Pequeno",regular:"Médio",large:"Grande","x-large":"Extra grande",custom:"Personalizado"},fontCustomSize:{title:"Tamanho de Fonte Personalizado",label:"Tamanho de Fonte",value:"48px"}},tr:{fontsize:"Yazı boyutu",fontsizes:{"x-small":"Çok küçük",small:"Küçük",medium:"Normal",large:"Büyük","x-large":"Çok büyük",custom:"Özel"},fontCustomSize:{title:"Özel Yazı Boyutu",label:"Yazı Boyutu",value:"48px"}},zh_tw:{fontsize:"字體大小",fontsizes:{"x-small":"最小",small:"小",medium:"中",large:"大","x-large":"最大",custom:"自訂大小"},fontCustomSize:{title:"自訂義字體大小",label:"字體大小",value:"48px"}}}});var t={sizeList:["x-small","small","medium","large","x-large"],allowCustomSize:!0};function l(t,l){t.$ed.focus(),t.saveRange(),t.execCmd("fontSize","1"),t.$ed.find('font[size="1"]').replaceWith((function(){return e("<span/>",{css:{"font-size":l},html:this.innerHTML})})),e(t.range.startContainer.parentElement).find('span[style=""]').contents().unwrap(),t.restoreRange(),t.syncCode(),t.$c.trigger("tbwchange")}function a(t){var a=[];if(e.each(t.o.plugins.fontsize.sizeList,(function(e,s){t.addBtnDef("fontsize_"+s,{text:'<span style="font-size: '+s+';">'+(t.lang.fontsizes[s]||s)+"</span>",hasIcon:!1,fn:function(){l(t,s)}}),a.push("fontsize_"+s)})),t.o.plugins.fontsize.allowCustomSize){var s="fontsize_custom",o={fn:function(){t.openModalInsert(t.lang.fontCustomSize.title,{size:{label:t.lang.fontCustomSize.label,value:t.lang.fontCustomSize.value}},(function(e){return l(t,e.size),!0}))},text:'<span style="font-size: medium;">'+t.lang.fontsizes.custom+"</span>",hasIcon:!1};t.addBtnDef(s,o),a.push(s)}return a}e.extend(!0,e.trumbowyg,{plugins:{fontsize:{init:function(l){l.o.plugins.fontsize=e.extend({},t,l.o.plugins.fontsize||{}),l.addBtnDef("fontsize",{dropdown:a(l)})}}}})}(jQuery);
@@ -7,12 +7,18 @@
7
7
  en: {
8
8
  giphy: 'Insert GIF',
9
9
  },
10
+ et: {
11
+ giphy: 'Sisesta GIF',
12
+ },
10
13
  fr: {
11
14
  giphy: 'Insérer un GIF',
12
15
  },
13
16
  hu: {
14
17
  giphy: 'GIF beszúrás',
15
18
  },
19
+ tr: {
20
+ giphy: 'GIF ekle',
21
+ },
16
22
  // jshint camelcase:true
17
23
  }
18
24
  });
@@ -1 +1 @@
1
- !function(i){"use strict";function e(i,e){var n,t;return function(){var o=this,l=+new Date,c=arguments;n&&l<n+e?(clearTimeout(t),t=setTimeout(function(){n=l,i.apply(o,c)},e)):(n=l,i.apply(o,c))}}function n(e,n,t,o){var l=(n.width()-20)/3,c=e.data.filter(function(i){return""!==i.images.downsized.url}).map(function(i){var e=i.images.downsized,n=e.height/e.width;return'<div class="img-container"><img src='+e.url+' width="'+l+'" height="'+n*l+'" loading="lazy" onload="this.classList.add(\'tbw-loaded\')"/></div>'}).join("");if(o===!0){if(0===c.length){if(i("."+t.o.prefix+"giphy-no-result",n).length>0)return;c='<img class="'+t.o.prefix+'giphy-no-result" src="'+t.o.plugins.giphy.noResultGifUrl+'"/>'}n.empty()}n.append(c),i("img",n).on("click",function(){t.restoreRange(),t.execCmd("insertImage",i(this).attr("src"),!1,!0),i("img",n).off(),t.closeModal()})}i.extend(!0,i.trumbowyg,{langs:{en:{giphy:"Insert GIF"},fr:{giphy:"Insérer un GIF"},hu:{giphy:"GIF beszúrás"}}});var t='<svg viewBox="0 0 231 53" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M48.32 22.386c0-1.388-.252-1.892-1.767-1.85-3.448.126-6.855.042-10.303.042H25.443c-.927 0-1.346.211-1.305 1.22.085 2.86.085 5.72.043 8.58 0 .883.252 1.169 1.169 1.135 2.018-.084 3.995-.042 6.014 0 1.64 0 4.164-.546 4.752.252.841 1.169.421 3.364.337 5.089-.043.547-.547 1.304-1.094 1.598-2.692 1.556-5.678 2.018-8.747 1.892-5.342-.21-9.336-2.439-11.481-7.527-1.388-3.364-1.725-6.855-1.01-10.43 1.01-4.963 3.407-8.747 8.58-10.051 5.215-1.305 10.136-.547 14.467 2.817 1.219.967 1.798.715 2.691-.294 1.514-1.724 3.154-3.322 4.753-4.963 1.892-1.933 1.892-1.892-.169-3.7C38.429.813 31.238-.617 23.5.224 12.818 1.393 5.248 6.658 1.59 17.045-.177 22.008-.428 27.097.623 32.227c1.682 7.914 5.551 14.12 13.289 17.368 6.898 2.901 14.046 3.448 21.321 1.598 4.331-1.093 8.411-2.608 11.354-6.223 1.136-1.388 1.725-2.902 1.682-4.71l.043-17.873.008-.001zm125.153 3.784l.042-23.046c0-1.136-.168-1.598-1.472-1.556a238.02 238.02 0 0 1-11.017 0c-1.136-.042-1.439.337-1.439 1.439v15.645c0 1.345-.421 1.556-1.641 1.556a422.563 422.563 0 0 0-14.593 0c-1.262.042-1.472-.421-1.439-1.556l.043-15.813c0-.926-.169-1.304-1.17-1.262h-11.513c-.927 0-1.304.169-1.304 1.22v46.764c0 .967.252 1.262 1.219 1.262h11.512c1.169.042 1.262-.462 1.262-1.388l-.042-15.644c0-1.053.251-1.346 1.304-1.346h15.14c1.22 0 1.388.421 1.388 1.472l-.042 15.477c0 1.093.21 1.472 1.388 1.439 3.615-.085 7.233-.085 10.807 0 1.304.042 1.598-.337 1.598-1.598l-.042-23.047.011-.018zM106.565 1.654c-8.369-.211-16.728-.126-25.065-.211-1.346 0-1.767.337-1.767 1.724l.043 23.004v23.215c0 1.009.168 1.439 1.304 1.387a271.22 271.22 0 0 1 11.691 0c1.094 0 1.346-.336 1.346-1.345l-.042-10.64c0-1.052.294-1.345 1.345-1.345 3.322.042 6.645.085 9.967-.085 4.407-.21 8.621-1.219 12.111-4.12 5.551-4.584 7.613-12.701 5.131-20.061-2.313-6.561-8.747-11.354-16.064-11.522v-.001zm-3.028 24.013c-2.818.042-5.594-.043-8.411.042-1.169.042-1.439-.378-1.345-1.439.084-1.556 0-3.069 0-4.626v-5.131c-.043-.841.251-1.094 1.052-1.052 2.986.042 5.929-.085 8.915.042 3.616.126 5.887 2.692 5.846 6.266-.126 3.658-2.313 5.846-6.055 5.887l-.002.011zM229.699 1.569c-4.458 0-8.915-.042-13.415.043-.629 0-1.472.503-1.85 1.052a505.695 505.695 0 0 0-8.957 14.214c-.884 1.472-1.22 1.169-1.977-.084l-8.496-14.089c-.503-.841-1.052-1.136-2.018-1.136l-13.078.043c-.462 0-.967.125-1.439.21.21.378.378.799.629 1.169l17.412 27.167c.462.715.715 1.682.757 2.524v16.653c0 1.052.168 1.514 1.388 1.472 3.784-.084 7.57-.084 11.354 0 1.136.043 1.304-.377 1.304-1.387l-.042-8.58c0-2.734-.084-5.51.042-8.243.043-.926.337-1.933.841-2.649l18.167-27.041c.252-.337.337-.758.547-1.17a3.636 3.636 0 0 0-1.169-.168zM70.104 2.661c0-1.009-.294-1.219-1.262-1.219H57.69c-1.262-.043-1.472.377-1.472 1.513l.042 23.004v23.34c0 1.053.126 1.514 1.346 1.473 3.7-.085 7.444-.043 11.152 0 .966 0 1.387-.085 1.387-1.262l-.042-46.857.001.008z" fill="currentColor" fill-rule="nonzero"/></svg>',o="tbwcancel",l={rating:"g",apiKey:null,throttleDelay:300,noResultGifUrl:"https://media.giphy.com/media/2Faz9FbRzmwxY0pZS/giphy.gif"};i.extend(!0,i.trumbowyg,{plugins:{giphy:{init:function(c){c.o.plugins.giphy=i.extend({},l,c.o.plugins.giphy||{}),c.addBtnDef("giphy",{fn:function(){if(null===c.o.plugins.giphy.apiKey)throw new Error("You must set a Giphy API Key");var l="https://api.giphy.com/v1/gifs/search?api_key="+c.o.plugins.giphy.apiKey+"&rating="+c.o.plugins.giphy.rating,a=l.replace("/search","/trending"),r={abort:function(){}},s=c.o.prefix,p='<input name="" class="'+s+'giphy-search" placeholder="Search a GIF" autofocus="autofocus">',g='<button class="'+s+'giphy-close" title="'+c.lang.close+'"><svg><use xlink:href="'+c.svgPath+"#"+s+'close"/></svg></button>',u='<div class="'+s+'powered-by-giphy"><span>Powered by</span>'+t+"</div>",h=p+g+u+'<div class="'+s+'giphy-modal-scroll"><div class="'+s+'giphy-modal"></div></div>';c.openModal(null,h,!1).one(o,function(){try{r.abort()}catch(i){}c.closeModal()});var d=i("."+s+"giphy-search"),y=i("."+s+"giphy-close"),f=i("."+s+"giphy-modal"),v=function(){navigator.onLine||i("."+s+"giphy-offline",f).length||(f.empty(),f.append('<p class="'+s+'giphy-offline">You are offline</p>'))};i.ajax({url:a,dataType:"json",success:function(i){n(i,f,c,!0)},error:v});var m=function(){var e=d.val();if(0!==e.length){try{r.abort()}catch(t){}r=i.ajax({url:l+"&q="+encodeURIComponent(e),dataType:"json",success:function(i){n(i,f,c,!0)},error:v})}},w=e(m,c.o.plugins.giphy.throttleDelay);d.on("input",w),d.focus(),y.one("click",function(){f.trigger(o)})}})}}}})}(jQuery);
1
+ !function(i){"use strict";i.extend(!0,i.trumbowyg,{langs:{en:{giphy:"Insert GIF"},et:{giphy:"Sisesta GIF"},fr:{giphy:"Insérer un GIF"},hu:{giphy:"GIF beszúrás"},tr:{giphy:"GIF ekle"}}});var e="tbwcancel";function n(e,n,t,l){var o=(n.width()-20)/3,a=e.data.filter((function(i){return""!==i.images.downsized.url})).map((function(i){var e=i.images.downsized,n=e.height/e.width;return'<div class="img-container"><img src='+e.url+' width="'+o+'" height="'+n*o+'" loading="lazy" onload="this.classList.add(\'tbw-loaded\')"/></div>'})).join("");if(!0===l){if(0===a.length){if(i("."+t.o.prefix+"giphy-no-result",n).length>0)return;a='<img class="'+t.o.prefix+'giphy-no-result" src="'+t.o.plugins.giphy.noResultGifUrl+'"/>'}n.empty()}n.append(a),i("img",n).on("click",(function(){t.restoreRange(),t.execCmd("insertImage",i(this).attr("src"),!1,!0),i("img",n).off(),t.closeModal()}))}var t={rating:"g",apiKey:null,throttleDelay:300,noResultGifUrl:"https://media.giphy.com/media/2Faz9FbRzmwxY0pZS/giphy.gif"};i.extend(!0,i.trumbowyg,{plugins:{giphy:{init:function(l){l.o.plugins.giphy=i.extend({},t,l.o.plugins.giphy||{}),l.addBtnDef("giphy",{fn:function(){if(null===l.o.plugins.giphy.apiKey)throw new Error("You must set a Giphy API Key");var t="https://api.giphy.com/v1/gifs/search?api_key="+l.o.plugins.giphy.apiKey+"&rating="+l.o.plugins.giphy.rating,o=t.replace("/search","/trending"),a={abort:function(){}},c=l.o.prefix,r='<input name="" class="'+c+'giphy-search" placeholder="Search a GIF" autofocus="autofocus">'+('<button class="'+c+'giphy-close" title="'+l.lang.close+'"><svg><use xlink:href="'+l.svgPath+"#"+c+'close"/></svg></button>')+('<div class="'+c+'powered-by-giphy"><span>Powered by</span><svg viewBox="0 0 231 53" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M48.32 22.386c0-1.388-.252-1.892-1.767-1.85-3.448.126-6.855.042-10.303.042H25.443c-.927 0-1.346.211-1.305 1.22.085 2.86.085 5.72.043 8.58 0 .883.252 1.169 1.169 1.135 2.018-.084 3.995-.042 6.014 0 1.64 0 4.164-.546 4.752.252.841 1.169.421 3.364.337 5.089-.043.547-.547 1.304-1.094 1.598-2.692 1.556-5.678 2.018-8.747 1.892-5.342-.21-9.336-2.439-11.481-7.527-1.388-3.364-1.725-6.855-1.01-10.43 1.01-4.963 3.407-8.747 8.58-10.051 5.215-1.305 10.136-.547 14.467 2.817 1.219.967 1.798.715 2.691-.294 1.514-1.724 3.154-3.322 4.753-4.963 1.892-1.933 1.892-1.892-.169-3.7C38.429.813 31.238-.617 23.5.224 12.818 1.393 5.248 6.658 1.59 17.045-.177 22.008-.428 27.097.623 32.227c1.682 7.914 5.551 14.12 13.289 17.368 6.898 2.901 14.046 3.448 21.321 1.598 4.331-1.093 8.411-2.608 11.354-6.223 1.136-1.388 1.725-2.902 1.682-4.71l.043-17.873.008-.001zm125.153 3.784l.042-23.046c0-1.136-.168-1.598-1.472-1.556a238.02 238.02 0 0 1-11.017 0c-1.136-.042-1.439.337-1.439 1.439v15.645c0 1.345-.421 1.556-1.641 1.556a422.563 422.563 0 0 0-14.593 0c-1.262.042-1.472-.421-1.439-1.556l.043-15.813c0-.926-.169-1.304-1.17-1.262h-11.513c-.927 0-1.304.169-1.304 1.22v46.764c0 .967.252 1.262 1.219 1.262h11.512c1.169.042 1.262-.462 1.262-1.388l-.042-15.644c0-1.053.251-1.346 1.304-1.346h15.14c1.22 0 1.388.421 1.388 1.472l-.042 15.477c0 1.093.21 1.472 1.388 1.439 3.615-.085 7.233-.085 10.807 0 1.304.042 1.598-.337 1.598-1.598l-.042-23.047.011-.018zM106.565 1.654c-8.369-.211-16.728-.126-25.065-.211-1.346 0-1.767.337-1.767 1.724l.043 23.004v23.215c0 1.009.168 1.439 1.304 1.387a271.22 271.22 0 0 1 11.691 0c1.094 0 1.346-.336 1.346-1.345l-.042-10.64c0-1.052.294-1.345 1.345-1.345 3.322.042 6.645.085 9.967-.085 4.407-.21 8.621-1.219 12.111-4.12 5.551-4.584 7.613-12.701 5.131-20.061-2.313-6.561-8.747-11.354-16.064-11.522v-.001zm-3.028 24.013c-2.818.042-5.594-.043-8.411.042-1.169.042-1.439-.378-1.345-1.439.084-1.556 0-3.069 0-4.626v-5.131c-.043-.841.251-1.094 1.052-1.052 2.986.042 5.929-.085 8.915.042 3.616.126 5.887 2.692 5.846 6.266-.126 3.658-2.313 5.846-6.055 5.887l-.002.011zM229.699 1.569c-4.458 0-8.915-.042-13.415.043-.629 0-1.472.503-1.85 1.052a505.695 505.695 0 0 0-8.957 14.214c-.884 1.472-1.22 1.169-1.977-.084l-8.496-14.089c-.503-.841-1.052-1.136-2.018-1.136l-13.078.043c-.462 0-.967.125-1.439.21.21.378.378.799.629 1.169l17.412 27.167c.462.715.715 1.682.757 2.524v16.653c0 1.052.168 1.514 1.388 1.472 3.784-.084 7.57-.084 11.354 0 1.136.043 1.304-.377 1.304-1.387l-.042-8.58c0-2.734-.084-5.51.042-8.243.043-.926.337-1.933.841-2.649l18.167-27.041c.252-.337.337-.758.547-1.17a3.636 3.636 0 0 0-1.169-.168zM70.104 2.661c0-1.009-.294-1.219-1.262-1.219H57.69c-1.262-.043-1.472.377-1.472 1.513l.042 23.004v23.34c0 1.053.126 1.514 1.346 1.473 3.7-.085 7.444-.043 11.152 0 .966 0 1.387-.085 1.387-1.262l-.042-46.857.001.008z" fill="currentColor" fill-rule="nonzero"/></svg></div>')+'<div class="'+c+'giphy-modal-scroll"><div class="'+c+'giphy-modal"></div></div>';l.openModal(null,r,!1).one(e,(function(){try{a.abort()}catch(i){}l.closeModal()}));var s=i("."+c+"giphy-search"),p=i("."+c+"giphy-close"),g=i("."+c+"giphy-modal"),u=function(){navigator.onLine||i("."+c+"giphy-offline",g).length||(g.empty(),g.append('<p class="'+c+'giphy-offline">You are offline</p>'))};i.ajax({url:o,dataType:"json",success:function(i){n(i,g,l,!0)},error:u});var h,d,y,f,v=(h=function(){var e=s.val();if(0!==e.length){try{a.abort()}catch(i){}a=i.ajax({url:t+"&q="+encodeURIComponent(e),dataType:"json",success:function(i){n(i,g,l,!0)},error:u})}},d=l.o.plugins.giphy.throttleDelay,function(){var i=this,e=+new Date,n=arguments;y&&e<y+d?(clearTimeout(f),f=setTimeout((function(){y=e,h.apply(i,n)}),d)):(y=e,h.apply(i,n))});s.on("input",v),s.focus(),p.one("click",(function(){g.trigger(e)}))}})}}}})}(jQuery);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
2
+ * Trumbowyg v2.25.0 - A lightweight WYSIWYG editor
3
3
  * Default stylesheet for Trumbowyg editor plugin
4
4
  * ------------------------
5
5
  * @link http://alex-d.github.io/Trumbowyg
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
2
+ * Trumbowyg v2.25.0 - A lightweight WYSIWYG editor
3
3
  * Trumbowyg plugin stylesheet
4
4
  * ------------------------
5
5
  * @link http://alex-d.github.io/Trumbowyg
@@ -10,7 +10,10 @@
10
10
  */
11
11
 
12
12
  .trumbowyg-giphy-button svg {
13
- transform: scale(1.22); }
13
+ -webkit-transform: scale(1.22);
14
+ -ms-transform: scale(1.22);
15
+ -o-transform: scale(1.22);
16
+ transform: scale(1.22); }
14
17
 
15
18
  .trumbowyg-giphy-search {
16
19
  display: block;
@@ -61,10 +64,12 @@
61
64
 
62
65
  .trumbowyg-giphy-modal {
63
66
  padding: 0 5%;
64
- -moz-columns: 3;
65
- columns: 3;
66
- -moz-column-gap: 10px;
67
- column-gap: 10px; }
67
+ -webkit-columns: 3;
68
+ -moz-columns: 3;
69
+ columns: 3;
70
+ -webkit-column-gap: 10px;
71
+ -moz-column-gap: 10px;
72
+ column-gap: 10px; }
68
73
  .trumbowyg-giphy-modal .trumbowyg-giphy-no-result {
69
74
  width: 250%;
70
75
  margin: 13% 0 0 29%; }
@@ -83,6 +88,8 @@
83
88
  width: 100%;
84
89
  cursor: pointer;
85
90
  opacity: 0;
91
+ -webkit-transition: opacity 150ms;
92
+ -o-transition: opacity 150ms;
86
93
  transition: opacity 150ms; }
87
94
  .trumbowyg-giphy-modal .img-container img:hover, .trumbowyg-giphy-modal .img-container img:focus {
88
95
  border: #2ecc71 solid 3px; }
@@ -1,2 +1,2 @@
1
- /** Trumbowyg v2.23.0 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */
2
- .trumbowyg-giphy-button svg{transform:scale(1.22)}.trumbowyg-giphy-search{display:block;width:80%;margin:5%;padding-left:10px;padding-right:150px}.trumbowyg-giphy-close{position:absolute;top:calc(5% + 8px);right:calc(5% - 2px);width:30px;height:30px;background:0 0;border:1px solid transparent}.trumbowyg-giphy-close:focus,.trumbowyg-giphy-close:hover{outline:0;background:#ecf0f1}.trumbowyg-giphy-close:focus{border-color:rgba(0,0,0,.3)}.trumbowyg-powered-by-giphy{position:absolute;top:calc(5% + 12px);right:calc(15% + 10px);pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.trumbowyg-powered-by-giphy span{text-transform:uppercase;font-weight:700;font-size:10px;opacity:.6}.trumbowyg-powered-by-giphy svg{width:66px;height:15px;vertical-align:bottom;margin-left:6px;opacity:.45}.trumbowyg-giphy-modal-scroll{overflow:auto;overflow-x:hidden;height:240px}.trumbowyg-giphy-modal{padding:0 5%;-moz-columns:3;columns:3;-moz-column-gap:10px;column-gap:10px}.trumbowyg-giphy-modal .trumbowyg-giphy-no-result{width:250%;margin:13% 0 0 29%}.trumbowyg-giphy-modal .trumbowyg-giphy-offline{font-size:18px;width:305%;height:600px;margin-top:95px;text-align:center}.trumbowyg-giphy-modal .img-container{width:100%;margin-bottom:10px;background-color:#ecf0f1}.trumbowyg-giphy-modal .img-container img{width:100%;cursor:pointer;opacity:0;transition:opacity 150ms}.trumbowyg-giphy-modal .img-container img:focus,.trumbowyg-giphy-modal .img-container img:hover{border:3px solid #2ecc71}.trumbowyg-giphy-modal .img-container img.tbw-loaded{opacity:1}
1
+ /** Trumbowyg v2.25.0 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */
2
+ .trumbowyg-giphy-button svg{-webkit-transform:scale(1.22);-ms-transform:scale(1.22);-o-transform:scale(1.22);transform:scale(1.22)}.trumbowyg-giphy-search{display:block;width:80%;margin:5%;padding-left:10px;padding-right:150px}.trumbowyg-giphy-close{position:absolute;top:calc(5% + 8px);right:calc(5% - 2px);width:30px;height:30px;background:0 0;border:1px solid transparent}.trumbowyg-giphy-close:focus,.trumbowyg-giphy-close:hover{outline:0;background:#ecf0f1}.trumbowyg-giphy-close:focus{border-color:rgba(0,0,0,.3)}.trumbowyg-powered-by-giphy{position:absolute;top:calc(5% + 12px);right:calc(15% + 10px);pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.trumbowyg-powered-by-giphy span{text-transform:uppercase;font-weight:700;font-size:10px;opacity:.6}.trumbowyg-powered-by-giphy svg{width:66px;height:15px;vertical-align:bottom;margin-left:6px;opacity:.45}.trumbowyg-giphy-modal-scroll{overflow:auto;overflow-x:hidden;height:240px}.trumbowyg-giphy-modal{padding:0 5%;-webkit-columns:3;-moz-columns:3;columns:3;-webkit-column-gap:10px;-moz-column-gap:10px;column-gap:10px}.trumbowyg-giphy-modal .trumbowyg-giphy-no-result{width:250%;margin:13% 0 0 29%}.trumbowyg-giphy-modal .trumbowyg-giphy-offline{font-size:18px;width:305%;height:600px;margin-top:95px;text-align:center}.trumbowyg-giphy-modal .img-container{width:100%;margin-bottom:10px;background-color:#ecf0f1}.trumbowyg-giphy-modal .img-container img{width:100%;cursor:pointer;opacity:0;-webkit-transition:opacity 150ms;-o-transition:opacity 150ms;transition:opacity 150ms}.trumbowyg-giphy-modal .img-container img:focus,.trumbowyg-giphy-modal .img-container img:hover{border:3px solid #2ecc71}.trumbowyg-giphy-modal .img-container img.tbw-loaded{opacity:1}
@@ -3,7 +3,182 @@
3
3
  'use strict';
4
4
 
5
5
  // My plugin default options
6
- var defaultOptions = {};
6
+ var defaultOptions = {
7
+ enableLineHighlight: true,
8
+ languageNames: {
9
+ // For updated list of languages
10
+ // see https://github.com/PrismJS/prism/blob/master/plugins/show-language/prism-show-language.js
11
+ 'html': 'HTML',
12
+ 'xml': 'XML',
13
+ 'svg': 'SVG',
14
+ 'mathml': 'MathML',
15
+ 'ssml': 'SSML',
16
+ 'css': 'CSS',
17
+ 'clike': 'C-like',
18
+ 'js': 'JavaScript',
19
+ 'abap': 'ABAP',
20
+ 'abnf': 'Augmented Backus–Naur form',
21
+ 'al': 'AL',
22
+ 'antlr4': 'ANTLR4',
23
+ 'g4': 'ANTLR4',
24
+ 'apacheconf': 'Apache Configuration',
25
+ 'apl': 'APL',
26
+ 'aql': 'AQL',
27
+ 'arff': 'ARFF',
28
+ 'asciidoc': 'AsciiDoc',
29
+ 'adoc': 'AsciiDoc',
30
+ 'asm6502': '6502 Assembly',
31
+ 'aspnet': 'ASP.NET (C#)',
32
+ 'autohotkey': 'AutoHotkey',
33
+ 'autoit': 'AutoIt',
34
+ 'basic': 'BASIC',
35
+ 'bbcode': 'BBcode',
36
+ 'bnf': 'Backus–Naur form',
37
+ 'rbnf': 'Routing Backus–Naur form',
38
+ 'conc': 'Concurnas',
39
+ 'csharp': 'C#',
40
+ 'cs': 'C#',
41
+ 'dotnet': 'C#',
42
+ 'cpp': 'C++',
43
+ 'cil': 'CIL',
44
+ 'coffee': 'CoffeeScript',
45
+ 'cmake': 'CMake',
46
+ 'csp': 'Content-Security-Policy',
47
+ 'css-extras': 'CSS Extras',
48
+ 'dax': 'DAX',
49
+ 'django': 'Django/Jinja2',
50
+ 'jinja2': 'Django/Jinja2',
51
+ 'dns-zone-file': 'DNS zone file',
52
+ 'dns-zone': 'DNS zone file',
53
+ 'dockerfile': 'Docker',
54
+ 'ebnf': 'Extended Backus–Naur form',
55
+ 'ejs': 'EJS',
56
+ 'etlua': 'Embedded Lua templating',
57
+ 'erb': 'ERB',
58
+ 'excel-formula': 'Excel Formula',
59
+ 'xlsx': 'Excel Formula',
60
+ 'xls': 'Excel Formula',
61
+ 'fsharp': 'F#',
62
+ 'firestore-security-rules': 'Firestore security rules',
63
+ 'ftl': 'FreeMarker Template Language',
64
+ 'gcode': 'G-code',
65
+ 'gdscript': 'GDScript',
66
+ 'gedcom': 'GEDCOM',
67
+ 'glsl': 'GLSL',
68
+ 'gml': 'GameMaker Language',
69
+ 'gamemakerlanguage': 'GameMaker Language',
70
+ 'graphql': 'GraphQL',
71
+ 'hs': 'Haskell',
72
+ 'hcl': 'HCL',
73
+ 'hlsl': 'HLSL',
74
+ 'http': 'HTTP',
75
+ 'hpkp': 'HTTP Public-Key-Pins',
76
+ 'hsts': 'HTTP Strict-Transport-Security',
77
+ 'ichigojam': 'IchigoJam',
78
+ 'iecst': 'Structured Text (IEC 61131-3)',
79
+ 'inform7': 'Inform 7',
80
+ 'javadoc': 'JavaDoc',
81
+ 'javadoclike': 'JavaDoc-like',
82
+ 'javastacktrace': 'Java stack trace',
83
+ 'jq': 'JQ',
84
+ 'jsdoc': 'JSDoc',
85
+ 'js-extras': 'JS Extras',
86
+ 'js-templates': 'JS Templates',
87
+ 'json': 'JSON',
88
+ 'jsonp': 'JSONP',
89
+ 'json5': 'JSON5',
90
+ 'latex': 'LaTeX',
91
+ 'tex': 'TeX',
92
+ 'context': 'ConTeXt',
93
+ 'lilypond': 'LilyPond',
94
+ 'ly': 'LilyPond',
95
+ 'emacs': 'Lisp',
96
+ 'elisp': 'Lisp',
97
+ 'emacs-lisp': 'Lisp',
98
+ 'llvm': 'LLVM IR',
99
+ 'lolcode': 'LOLCODE',
100
+ 'md': 'Markdown',
101
+ 'markup-templating': 'Markup templating',
102
+ 'matlab': 'MATLAB',
103
+ 'mel': 'MEL',
104
+ 'moon': 'MoonScript',
105
+ 'n1ql': 'N1QL',
106
+ 'n4js': 'N4JS',
107
+ 'n4jsd': 'N4JS',
108
+ 'nand2tetris-hdl': 'Nand To Tetris HDL',
109
+ 'nasm': 'NASM',
110
+ 'neon': 'NEON',
111
+ 'nginx': 'nginx',
112
+ 'nsis': 'NSIS',
113
+ 'objectivec': 'Objective-C',
114
+ 'objc': 'Objective-C',
115
+ 'ocaml': 'OCaml',
116
+ 'opencl': 'OpenCL',
117
+ 'parigp': 'PARI/GP',
118
+ 'objectpascal': 'Object Pascal',
119
+ 'pcaxis': 'PC-Axis',
120
+ 'px': 'PC-Axis',
121
+ 'peoplecode': 'PeopleCode',
122
+ 'pcode': 'PeopleCode',
123
+ 'php': 'PHP',
124
+ 'phpdoc': 'PHPDoc',
125
+ 'php-extras': 'PHP Extras',
126
+ 'plsql': 'PL/SQL',
127
+ 'powerquery': 'PowerQuery',
128
+ 'pq': 'PowerQuery',
129
+ 'mscript': 'PowerQuery',
130
+ 'powershell': 'PowerShell',
131
+ 'properties': '.properties',
132
+ 'protobuf': 'Protocol Buffers',
133
+ 'py': 'Python',
134
+ 'q': 'Q (kdb+ database)',
135
+ 'qml': 'QML',
136
+ 'rkt': 'Racket',
137
+ 'jsx': 'React JSX',
138
+ 'tsx': 'React TSX',
139
+ 'renpy': 'Ren\'py',
140
+ 'rest': 'reST (reStructuredText)',
141
+ 'robotframework': 'Robot Framework',
142
+ 'robot': 'Robot Framework',
143
+ 'rb': 'Ruby',
144
+ 'sas': 'SAS',
145
+ 'sass': 'Sass (Sass)',
146
+ 'scss': 'Sass (Scss)',
147
+ 'shell-session': 'Shell session',
148
+ 'solidity': 'Solidity (Ethereum)',
149
+ 'solution-file': 'Solution file',
150
+ 'sln': 'Solution file',
151
+ 'soy': 'Soy (Closure Template)',
152
+ 'sparql': 'SPARQL',
153
+ 'rq': 'SPARQL',
154
+ 'splunk-spl': 'Splunk SPL',
155
+ 'sqf': 'SQF: Status Quo Function (Arma 3)',
156
+ 'sql': 'SQL',
157
+ 'tap': 'TAP',
158
+ 'toml': 'TOML',
159
+ 'tt2': 'Template Toolkit 2',
160
+ 'trig': 'TriG',
161
+ 'ts': 'TypeScript',
162
+ 't4-cs': 'T4 Text Templates (C#)',
163
+ 't4': 'T4 Text Templates (C#)',
164
+ 't4-vb': 'T4 Text Templates (VB)',
165
+ 't4-templating': 'T4 templating',
166
+ 'uscript': 'UnrealScript',
167
+ 'uc': 'UnrealScript',
168
+ 'vbnet': 'VB.Net',
169
+ 'vhdl': 'VHDL',
170
+ 'vim': 'vim',
171
+ 'visual-basic': 'Visual Basic',
172
+ 'vb': 'Visual Basic',
173
+ 'wasm': 'WebAssembly',
174
+ 'wiki': 'Wiki markup',
175
+ 'xeoracube': 'XeoraCube',
176
+ 'xojo': 'Xojo (REALbasic)',
177
+ 'xquery': 'XQuery',
178
+ 'yaml': 'YAML',
179
+ 'yml': 'YAML'
180
+ }
181
+ };
7
182
 
8
183
  function highlightIt(text, language, lineHighlight) {
9
184
  return [
@@ -13,34 +188,58 @@
13
188
  ].join('');
14
189
  }
15
190
 
191
+ function escapeHtml(html) {
192
+ return $('<div/>').text(html).html();
193
+ }
194
+
195
+ function buildHighlightOptions(trumbowyg) {
196
+ var languageNames = trumbowyg.o.plugins.highlight.languageNames;
197
+ var languageNameKeys = Object.keys(languageNames);
198
+ var prismLanguageKeys = Object.keys(Prism.languages);
199
+
200
+ var options = prismLanguageKeys.filter(function (languageKey) {
201
+ return languageNameKeys.indexOf(languageKey) >= 0;
202
+ }).map(function (languageKey) {
203
+ return {
204
+ id: languageKey,
205
+ name: languageNames[languageKey]
206
+ };
207
+ }).sort(function(a, b){
208
+ // Sort languages by name
209
+ return a.name.localeCompare(b.name);
210
+ }).map(function( language){
211
+ // Generate a list of options
212
+ return '<option value="' + escapeHtml(language.id) + '">' + escapeHtml(language.name) + '</option>';
213
+ }).join('');
214
+
215
+ return options;
216
+ }
217
+
218
+ function buildLineHighlightFieldIfEnabled(trumbowyg) {
219
+ if (trumbowyg.o.plugins.highlight.enableLineHighlight === false) {
220
+ return '';
221
+ }
222
+
223
+ return '<div class="' + trumbowyg.o.prefix + 'highlight-form-group">' +
224
+ ' <input placeholder="' + trumbowyg.lang.highlightLine +
225
+ '" class="' + trumbowyg.o.prefix + 'highlight-form-control trumbowyg-line-highlight"/>' +
226
+ '</div>';
227
+ }
228
+
16
229
  // If my plugin is a button
17
230
  function buildButtonDef(trumbowyg) {
18
231
  return {
19
232
  fn: function () {
20
233
  var $modal = trumbowyg.openModal('Code', [
21
234
  '<div class="' + trumbowyg.o.prefix + 'highlight-form-group">',
22
- ' <select class="' + trumbowyg.o.prefix + 'highlight-form-control language">',
23
- (function () {
24
- var options = '';
25
-
26
- for (var lang in Prism.languages) {
27
- if (Prism.languages.hasOwnProperty(lang)) {
28
- options += '<option value="' + lang + '">' + lang + '</option>';
29
- }
30
- }
31
-
32
- return options;
33
- })(),
235
+ ' <select class="' + trumbowyg.o.prefix + 'highlight-form-control language" autofocus>',
236
+ buildHighlightOptions(trumbowyg),
34
237
  ' </select>',
35
238
  '</div>',
36
239
  '<div class="' + trumbowyg.o.prefix + 'highlight-form-group">',
37
240
  ' <textarea class="' + trumbowyg.o.prefix + 'highlight-form-control code"></textarea>',
38
241
  '</div>',
39
- '<div class="' + trumbowyg.o.prefix + 'highlight-form-group">',
40
- ' <input title="'+ trumbowyg.lang.prismHighlightPluginAlert +
41
- '" placeholder="' + trumbowyg.lang.highlightLine +
42
- '" class="' + trumbowyg.o.prefix + 'highlight-form-control trumbowyg-line-highlight"/>',
43
- '</div>'
242
+ buildLineHighlightFieldIfEnabled(trumbowyg),
44
243
  ].join('\n')),
45
244
  $language = $modal.find('.language'),
46
245
  $code = $modal.find('.code'),
@@ -68,13 +267,15 @@
68
267
  // jshint camelcase:false
69
268
  en: {
70
269
  highlight: 'Code syntax highlight',
71
- highlightLine: 'Highlight lines, e.g.: 1,3-5',
72
- prismHighlightPluginAlert: 'You must have Prism Line Highlight plugin installed'
270
+ highlightLine: 'Highlight lines, e.g.: 1,3-5'
73
271
  },
74
272
  es: {
75
273
  highlight: 'Resaltado de sintaxis de código',
76
- highlightLine: 'Resaltar lineas, ej: 1,3-5',
77
- prismHighlightPluginAlert: 'Debes de tener el plugin Prism Line Highlight instalado'
274
+ highlightLine: 'Resaltar lineas, ej: 1,3-5'
275
+ },
276
+ et: {
277
+ highlight: 'Koodi esiletoomine',
278
+ highlightLine: 'Koodiread, näiteks: 1,3-5'
78
279
  },
79
280
  hu: {
80
281
  highlight: 'Kód kiemelés'
@@ -1 +1 @@
1
- !function(i,e){"use strict";function g(i,g,l){return['<pre class="language-'+g+'" '+(l?'data-line="'+l+'"':"")+">",'<code class="language-'+g+'">'+e.highlight(i,e.languages[g])+"</code>","</pre>"].join("")}function l(i){return{fn:function(){var l=i.openModal("Code",['<div class="'+i.o.prefix+'highlight-form-group">',' <select class="'+i.o.prefix+'highlight-form-control language">',function(){var i="";for(var g in e.languages)e.languages.hasOwnProperty(g)&&(i+='<option value="'+g+'">'+g+"</option>");return i}()," </select>","</div>",'<div class="'+i.o.prefix+'highlight-form-group">',' <textarea class="'+i.o.prefix+'highlight-form-control code"></textarea>',"</div>",'<div class="'+i.o.prefix+'highlight-form-group">',' <input title="'+i.lang.prismHighlightPluginAlert+'" placeholder="'+i.lang.highlightLine+'" class="'+i.o.prefix+'highlight-form-control trumbowyg-line-highlight"/>',"</div>"].join("\n")),h=l.find(".language"),t=l.find(".code"),n=l.find(".trumbowyg-line-highlight");l.on("tbwconfirm",function(){i.restoreRange(),i.execCmd("insertHTML",g(t.val(),h.val(),n.val())),i.execCmd("insertHTML","<p><br></p>"),i.closeModal()}),l.on("tbwcancel",function(){i.closeModal()})}}}var h={};i.extend(!0,i.trumbowyg,{langs:{en:{highlight:"Code syntax highlight",highlightLine:"Highlight lines, e.g.: 1,3-5",prismHighlightPluginAlert:"You must have Prism Line Highlight plugin installed"},es:{highlight:"Resaltado de sintaxis de código",highlightLine:"Resaltar lineas, ej: 1,3-5",prismHighlightPluginAlert:"Debes de tener el plugin Prism Line Highlight instalado"},hu:{highlight:"Kód kiemelés"},ko:{highlight:"코드 문법 하이라이트"},pt_br:{highlight:"Realçar sintaxe de código"}},plugins:{highlight:{init:function(e){e.o.plugins.highlight=i.extend(!0,{},h,e.o.plugins.highlight||{}),e.addBtnDef("highlight",l(e))}}}})}(jQuery,Prism);
1
+ !function(e,i){"use strict";var t={enableLineHighlight:!0,languageNames:{html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",ssml:"SSML",css:"CSS",clike:"C-like",js:"JavaScript",abap:"ABAP",abnf:"Augmented Backus–Naur form",al:"AL",antlr4:"ANTLR4",g4:"ANTLR4",apacheconf:"Apache Configuration",apl:"APL",aql:"AQL",arff:"ARFF",asciidoc:"AsciiDoc",adoc:"AsciiDoc",asm6502:"6502 Assembly",aspnet:"ASP.NET (C#)",autohotkey:"AutoHotkey",autoit:"AutoIt",basic:"BASIC",bbcode:"BBcode",bnf:"Backus–Naur form",rbnf:"Routing Backus–Naur form",conc:"Concurnas",csharp:"C#",cs:"C#",dotnet:"C#",cpp:"C++",cil:"CIL",coffee:"CoffeeScript",cmake:"CMake",csp:"Content-Security-Policy","css-extras":"CSS Extras",dax:"DAX",django:"Django/Jinja2",jinja2:"Django/Jinja2","dns-zone-file":"DNS zone file","dns-zone":"DNS zone file",dockerfile:"Docker",ebnf:"Extended Backus–Naur form",ejs:"EJS",etlua:"Embedded Lua templating",erb:"ERB","excel-formula":"Excel Formula",xlsx:"Excel Formula",xls:"Excel Formula",fsharp:"F#","firestore-security-rules":"Firestore security rules",ftl:"FreeMarker Template Language",gcode:"G-code",gdscript:"GDScript",gedcom:"GEDCOM",glsl:"GLSL",gml:"GameMaker Language",gamemakerlanguage:"GameMaker Language",graphql:"GraphQL",hs:"Haskell",hcl:"HCL",hlsl:"HLSL",http:"HTTP",hpkp:"HTTP Public-Key-Pins",hsts:"HTTP Strict-Transport-Security",ichigojam:"IchigoJam",iecst:"Structured Text (IEC 61131-3)",inform7:"Inform 7",javadoc:"JavaDoc",javadoclike:"JavaDoc-like",javastacktrace:"Java stack trace",jq:"JQ",jsdoc:"JSDoc","js-extras":"JS Extras","js-templates":"JS Templates",json:"JSON",jsonp:"JSONP",json5:"JSON5",latex:"LaTeX",tex:"TeX",context:"ConTeXt",lilypond:"LilyPond",ly:"LilyPond",emacs:"Lisp",elisp:"Lisp","emacs-lisp":"Lisp",llvm:"LLVM IR",lolcode:"LOLCODE",md:"Markdown","markup-templating":"Markup templating",matlab:"MATLAB",mel:"MEL",moon:"MoonScript",n1ql:"N1QL",n4js:"N4JS",n4jsd:"N4JS","nand2tetris-hdl":"Nand To Tetris HDL",nasm:"NASM",neon:"NEON",nginx:"nginx",nsis:"NSIS",objectivec:"Objective-C",objc:"Objective-C",ocaml:"OCaml",opencl:"OpenCL",parigp:"PARI/GP",objectpascal:"Object Pascal",pcaxis:"PC-Axis",px:"PC-Axis",peoplecode:"PeopleCode",pcode:"PeopleCode",php:"PHP",phpdoc:"PHPDoc","php-extras":"PHP Extras",plsql:"PL/SQL",powerquery:"PowerQuery",pq:"PowerQuery",mscript:"PowerQuery",powershell:"PowerShell",properties:".properties",protobuf:"Protocol Buffers",py:"Python",q:"Q (kdb+ database)",qml:"QML",rkt:"Racket",jsx:"React JSX",tsx:"React TSX",renpy:"Ren'py",rest:"reST (reStructuredText)",robotframework:"Robot Framework",robot:"Robot Framework",rb:"Ruby",sas:"SAS",sass:"Sass (Sass)",scss:"Sass (Scss)","shell-session":"Shell session",solidity:"Solidity (Ethereum)","solution-file":"Solution file",sln:"Solution file",soy:"Soy (Closure Template)",sparql:"SPARQL",rq:"SPARQL","splunk-spl":"Splunk SPL",sqf:"SQF: Status Quo Function (Arma 3)",sql:"SQL",tap:"TAP",toml:"TOML",tt2:"Template Toolkit 2",trig:"TriG",ts:"TypeScript","t4-cs":"T4 Text Templates (C#)",t4:"T4 Text Templates (C#)","t4-vb":"T4 Text Templates (VB)","t4-templating":"T4 templating",uscript:"UnrealScript",uc:"UnrealScript",vbnet:"VB.Net",vhdl:"VHDL",vim:"vim","visual-basic":"Visual Basic",vb:"Visual Basic",wasm:"WebAssembly",wiki:"Wiki markup",xeoracube:"XeoraCube",xojo:"Xojo (REALbasic)",xquery:"XQuery",yaml:"YAML",yml:"YAML"}};function a(i){return e("<div/>").text(i).html()}function o(e){var t=e.o.plugins.highlight.languageNames,o=Object.keys(t);return Object.keys(i.languages).filter((function(e){return o.indexOf(e)>=0})).map((function(e){return{id:e,name:t[e]}})).sort((function(e,i){return e.name.localeCompare(i.name)})).map((function(e){return'<option value="'+a(e.id)+'">'+a(e.name)+"</option>"})).join("")}function l(e){return!1===e.o.plugins.highlight.enableLineHighlight?"":'<div class="'+e.o.prefix+'highlight-form-group"> <input placeholder="'+e.lang.highlightLine+'" class="'+e.o.prefix+'highlight-form-control trumbowyg-line-highlight"/></div>'}function s(e){return{fn:function(){var t=e.openModal("Code",['<div class="'+e.o.prefix+'highlight-form-group">',' <select class="'+e.o.prefix+'highlight-form-control language" autofocus>',o(e)," </select>","</div>",'<div class="'+e.o.prefix+'highlight-form-group">',' <textarea class="'+e.o.prefix+'highlight-form-control code"></textarea>',"</div>",l(e)].join("\n")),a=t.find(".language"),s=t.find(".code"),n=t.find(".trumbowyg-line-highlight");t.on("tbwconfirm",(function(){var t,o,l;e.restoreRange(),e.execCmd("insertHTML",(t=s.val(),o=a.val(),l=n.val(),['<pre class="language-'+o+'" '+(l?'data-line="'+l+'"':"")+">",'<code class="language-'+o+'">'+i.highlight(t,i.languages[o])+"</code>","</pre>"].join(""))),e.execCmd("insertHTML","<p><br></p>"),e.closeModal()})),t.on("tbwcancel",(function(){e.closeModal()}))}}}e.extend(!0,e.trumbowyg,{langs:{en:{highlight:"Code syntax highlight",highlightLine:"Highlight lines, e.g.: 1,3-5"},es:{highlight:"Resaltado de sintaxis de código",highlightLine:"Resaltar lineas, ej: 1,3-5"},et:{highlight:"Koodi esiletoomine",highlightLine:"Koodiread, näiteks: 1,3-5"},hu:{highlight:"Kód kiemelés"},ko:{highlight:"코드 문법 하이라이트"},pt_br:{highlight:"Realçar sintaxe de código"}},plugins:{highlight:{init:function(i){i.o.plugins.highlight=e.extend(!0,{},t,i.o.plugins.highlight||{}),i.addBtnDef("highlight",s(i))}}}})}(jQuery,Prism);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
2
+ * Trumbowyg v2.25.0 - A lightweight WYSIWYG editor
3
3
  * Default stylesheet for Trumbowyg editor plugin
4
4
  * ------------------------
5
5
  * @link http://alex-d.github.io/Trumbowyg
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
2
+ * Trumbowyg v2.25.0 - A lightweight WYSIWYG editor
3
3
  * Trumbowyg plugin stylesheet
4
4
  * ------------------------
5
5
  * @link http://alex-d.github.io/Trumbowyg
@@ -1,2 +1,2 @@
1
- /** Trumbowyg v2.23.0 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */
1
+ /** Trumbowyg v2.25.0 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */
2
2
  .trumbowyg-highlight-form-group{margin:15px 10px}.trumbowyg-highlight-form-group .trumbowyg-highlight-form-control{width:100%;border:1px solid #DEDEDE;font-size:14px;padding:7px}.trumbowyg-highlight-form-group .trumbowyg-highlight-form-control.code{height:200px}
@@ -29,6 +29,12 @@
29
29
  undo: 'Rückgängig'
30
30
  }
31
31
  },
32
+ et: {
33
+ history: {
34
+ redo: 'Võta tagasi',
35
+ undo: 'Tee uuesti'
36
+ }
37
+ },
32
38
  fr: {
33
39
  history: {
34
40
  redo: 'Annuler',
@@ -1 +1 @@
1
- !function(o){"use strict";o.extend(!0,o.trumbowyg,{langs:{en:{history:{redo:"Redo",undo:"Undo"}},da:{history:{redo:"Annuller fortryd",undo:"Fortryd"}},de:{history:{redo:"Wiederholen",undo:"Rückgängig"}},fr:{history:{redo:"Annuler",undo:"Rétablir"}},hu:{history:{redo:"Visszállít",undo:"Visszavon"}},ko:{history:{redo:"다시 실행",undo:"되돌리기"}},pt_br:{history:{redo:"Refazer",undo:"Desfazer"}},zh_tw:{history:{redo:"重做",undo:"復原"}}},plugins:{history:{init:function(i){i.o.plugins.history=o.extend(!0,{_stack:[],_index:-1,_focusEl:void 0},i.o.plugins.history||{});var t={title:i.lang.history.redo,ico:"redo",key:"Y",fn:function(){if(i.o.plugins.history._index<i.o.plugins.history._stack.length-1){i.o.plugins.history._index+=1;var o=i.o.plugins.history._index,t=i.o.plugins.history._stack[o];i.execCmd("html",t),i.o.plugins.history._stack[o]=i.$ed.html(),l(),e()}}},n={title:i.lang.history.undo,ico:"undo",key:"Z",fn:function(){if(i.o.plugins.history._index>0){i.o.plugins.history._index-=1;var o=i.o.plugins.history._index,t=i.o.plugins.history._stack[o];i.execCmd("html",t),i.o.plugins.history._stack[o]=i.$ed.html(),l(),e()}}},s=function(){var t,n,s=i.o.plugins.history._index,r=i.o.plugins.history._stack,l=r.slice(-1)[0]||"<p></p>",u=r[s],h=i.$ed.html(),c=i.doc.getSelection().focusNode,g="",a=i.o.plugins.history._focusEl;t=o("<div>"+l+"</div>").find("*").map(function(){return this.localName}),n=o("<div>"+h+"</div>").find("*").map(function(){return this.localName}),c&&(i.o.plugins.history._focusEl=c,g=c.outerHTML||c.textContent),h!==u&&(g.slice(-1).match(/\s/)||!d(t,n)||i.o.plugins.history._index<=0||c!==a?(i.o.plugins.history._index+=1,i.o.plugins.history._stack=r.slice(0,i.o.plugins.history._index),i.o.plugins.history._stack.push(h)):i.o.plugins.history._stack[s]=h,e())},e=function(){var o=i.o.plugins.history._index,t=i.o.plugins.history._stack.length,n=o>0,s=0!==t&&o!==t-1;r("historyUndo",n),r("historyRedo",s)},r=function(o,t){var n=i.$box.find(".trumbowyg-"+o+"-button");t?n.removeClass("trumbowyg-disable"):n.hasClass("trumbowyg-disable")||n.addClass("trumbowyg-disable")},d=function(o,i){if(o===i)return!0;if(null==o||null==i)return!1;if(o.length!==i.length)return!1;for(var t=0;t<o.length;t+=1)if(o[t]!==i[t])return!1;return!0},l=function(){var o=i.doc.getSelection().focusNode,t=i.doc.createRange();o.childNodes.length>0&&(t.setStartAfter(o.childNodes[o.childNodes.length-1]),t.setEndAfter(o.childNodes[o.childNodes.length-1]),i.doc.getSelection().removeAllRanges(),i.doc.getSelection().addRange(t))};i.$c.on("tbwinit tbwchange",s),i.addBtnDef("historyRedo",t),i.addBtnDef("historyUndo",n)}}}})}(jQuery);
1
+ !function(o){"use strict";o.extend(!0,o.trumbowyg,{langs:{en:{history:{redo:"Redo",undo:"Undo"}},da:{history:{redo:"Annuller fortryd",undo:"Fortryd"}},de:{history:{redo:"Wiederholen",undo:"Rückgängig"}},et:{history:{redo:"Võta tagasi",undo:"Tee uuesti"}},fr:{history:{redo:"Annuler",undo:"Rétablir"}},hu:{history:{redo:"Visszállít",undo:"Visszavon"}},ko:{history:{redo:"다시 실행",undo:"되돌리기"}},pt_br:{history:{redo:"Refazer",undo:"Desfazer"}},zh_tw:{history:{redo:"重做",undo:"復原"}}},plugins:{history:{init:function(i){i.o.plugins.history=o.extend(!0,{_stack:[],_index:-1,_focusEl:void 0},i.o.plugins.history||{});var t={title:i.lang.history.redo,ico:"redo",key:"Y",fn:function(){if(i.o.plugins.history._index<i.o.plugins.history._stack.length-1){i.o.plugins.history._index+=1;var o=i.o.plugins.history._index,t=i.o.plugins.history._stack[o];i.execCmd("html",t),i.o.plugins.history._stack[o]=i.$ed.html(),d(),e()}}},n={title:i.lang.history.undo,ico:"undo",key:"Z",fn:function(){if(i.o.plugins.history._index>0){i.o.plugins.history._index-=1;var o=i.o.plugins.history._index,t=i.o.plugins.history._stack[o];i.execCmd("html",t),i.o.plugins.history._stack[o]=i.$ed.html(),d(),e()}}},e=function(){var o=i.o.plugins.history._index,t=i.o.plugins.history._stack.length,n=0!==t&&o!==t-1;s("historyUndo",o>0),s("historyRedo",n)},s=function(o,t){var n=i.$box.find(".trumbowyg-"+o+"-button");t?n.removeClass("trumbowyg-disable"):n.hasClass("trumbowyg-disable")||n.addClass("trumbowyg-disable")},r=function(o,i){if(o===i)return!0;if(null==o||null==i)return!1;if(o.length!==i.length)return!1;for(var t=0;t<o.length;t+=1)if(o[t]!==i[t])return!1;return!0},d=function(){var o=i.doc.getSelection().focusNode,t=i.doc.createRange();o.childNodes.length>0&&(t.setStartAfter(o.childNodes[o.childNodes.length-1]),t.setEndAfter(o.childNodes[o.childNodes.length-1]),i.doc.getSelection().removeAllRanges(),i.doc.getSelection().addRange(t))};i.$c.on("tbwinit tbwchange",(function(){var t,n,s=i.o.plugins.history._index,d=i.o.plugins.history._stack,l=d.slice(-1)[0]||"<p></p>",u=d[s],h=i.$ed.html(),c=i.doc.getSelection().focusNode,a="",g=i.o.plugins.history._focusEl;t=o("<div>"+l+"</div>").find("*").map((function(){return this.localName})),n=o("<div>"+h+"</div>").find("*").map((function(){return this.localName})),c&&(i.o.plugins.history._focusEl=c,a=c.outerHTML||c.textContent),h!==u&&(a.slice(-1).match(/\s/)||!r(t,n)||i.o.plugins.history._index<=0||c!==g?(i.o.plugins.history._index+=1,i.o.plugins.history._stack=d.slice(0,i.o.plugins.history._index),i.o.plugins.history._stack.push(h)):i.o.plugins.history._stack[s]=h,e())})),i.addBtnDef("historyRedo",t),i.addBtnDef("historyUndo",n)}}}})}(jQuery);
@@ -15,7 +15,11 @@
15
15
  langs: {
16
16
  en: {
17
17
  indent: 'Indent',
18
- outdent: 'Outdent'
18
+ outdent: 'Outdent'
19
+ },
20
+ et: {
21
+ indent: 'Taande suurendamine',
22
+ outdent: 'Taande vähendamine'
19
23
  },
20
24
  fr: {
21
25
  indent: 'Augmenter le retrait',
@@ -32,8 +36,8 @@
32
36
  var indentBtnDef = {
33
37
  fn: 'indent',
34
38
  title: trumbowyg.lang.indent,
35
- isSupported: function () {
36
- return !!document.queryCommandSupported && !!document.queryCommandSupported('indent');
39
+ isSupported: function () {
40
+ return !!document.queryCommandSupported && !!document.queryCommandSupported('indent');
37
41
  },
38
42
  ico: 'indent'
39
43
  };
@@ -41,8 +45,8 @@
41
45
  var outdentBtnDef = {
42
46
  fn: 'outdent',
43
47
  title: trumbowyg.lang.outdent,
44
- isSupported: function () {
45
- return !!document.queryCommandSupported && !!document.queryCommandSupported('outdent');
48
+ isSupported: function () {
49
+ return !!document.queryCommandSupported && !!document.queryCommandSupported('outdent');
46
50
  },
47
51
  ico: 'outdent'
48
52
  };
@@ -1 +1 @@
1
- !function(t){"use strict";t.extend(!0,t.trumbowyg,{langs:{en:{indent:"Indent",outdent:"Outdent"},fr:{indent:"Augmenter le retrait",outdent:"Diminuer le retrait"}}}),t.extend(!0,t.trumbowyg,{plugins:{paragraph:{init:function(t){var n={fn:"indent",title:t.lang.indent,isSupported:function(){return!!document.queryCommandSupported&&!!document.queryCommandSupported("indent")},ico:"indent"},e={fn:"outdent",title:t.lang.outdent,isSupported:function(){return!!document.queryCommandSupported&&!!document.queryCommandSupported("outdent")},ico:"outdent"};t.addBtnDef("indent",n),t.addBtnDef("outdent",e)}}}})}(jQuery);
1
+ !function(n){"use strict";n.extend(!0,n.trumbowyg,{langs:{en:{indent:"Indent",outdent:"Outdent"},et:{indent:"Taande suurendamine",outdent:"Taande vähendamine"},fr:{indent:"Augmenter le retrait",outdent:"Diminuer le retrait"}}}),n.extend(!0,n.trumbowyg,{plugins:{paragraph:{init:function(n){var t={fn:"indent",title:n.lang.indent,isSupported:function(){return!!document.queryCommandSupported&&!!document.queryCommandSupported("indent")},ico:"indent"},e={fn:"outdent",title:n.lang.outdent,isSupported:function(){return!!document.queryCommandSupported&&!!document.queryCommandSupported("outdent")},ico:"outdent"};n.addBtnDef("indent",t),n.addBtnDef("outdent",e)}}}})}(jQuery);