activeadmin_trumbowyg 1.0.0 → 1.2.0

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.
Files changed (132) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -5
  3. data/Rakefile +11 -0
  4. data/app/assets/fonts/trumbowyg/icons.svg +1 -1
  5. data/app/assets/javascripts/activeadmin/trumbowyg/langs/az.js +63 -0
  6. data/app/assets/javascripts/activeadmin/trumbowyg/langs/az.min.js +9 -0
  7. data/app/assets/javascripts/activeadmin/trumbowyg/langs/ca.js +30 -13
  8. data/app/assets/javascripts/activeadmin/trumbowyg/langs/ca.min.js +8 -5
  9. data/app/assets/javascripts/activeadmin/trumbowyg/langs/cs.js +11 -2
  10. data/app/assets/javascripts/activeadmin/trumbowyg/langs/cs.min.js +1 -1
  11. data/app/assets/javascripts/activeadmin/trumbowyg/langs/da.js +1 -1
  12. data/app/assets/javascripts/activeadmin/trumbowyg/langs/de.js +11 -2
  13. data/app/assets/javascripts/activeadmin/trumbowyg/langs/de.min.js +3 -3
  14. data/app/assets/javascripts/activeadmin/trumbowyg/langs/es_ar.js +1 -1
  15. data/app/assets/javascripts/activeadmin/trumbowyg/langs/et.js +7 -7
  16. data/app/assets/javascripts/activeadmin/trumbowyg/langs/fa.js +1 -1
  17. data/app/assets/javascripts/activeadmin/trumbowyg/langs/fi.js +1 -1
  18. data/app/assets/javascripts/activeadmin/trumbowyg/langs/fr.js +3 -0
  19. data/app/assets/javascripts/activeadmin/trumbowyg/langs/fr.min.js +1 -1
  20. data/app/assets/javascripts/activeadmin/trumbowyg/langs/he.js +1 -1
  21. data/app/assets/javascripts/activeadmin/trumbowyg/langs/hu.js +3 -0
  22. data/app/assets/javascripts/activeadmin/trumbowyg/langs/hu.min.js +1 -1
  23. data/app/assets/javascripts/activeadmin/trumbowyg/langs/id.js +1 -1
  24. data/app/assets/javascripts/activeadmin/trumbowyg/langs/it.js +4 -1
  25. data/app/assets/javascripts/activeadmin/trumbowyg/langs/it.min.js +1 -1
  26. data/app/assets/javascripts/activeadmin/trumbowyg/langs/lt.js +1 -1
  27. data/app/assets/javascripts/activeadmin/trumbowyg/langs/mn.js +39 -39
  28. data/app/assets/javascripts/activeadmin/trumbowyg/langs/{no_nb.js → nb.js} +22 -8
  29. data/app/assets/javascripts/activeadmin/trumbowyg/langs/nb.min.js +15 -0
  30. data/app/assets/javascripts/activeadmin/trumbowyg/langs/pl.js +1 -1
  31. data/app/assets/javascripts/activeadmin/trumbowyg/langs/pt.js +2 -2
  32. data/app/assets/javascripts/activeadmin/trumbowyg/langs/pt_br.js +2 -2
  33. data/app/assets/javascripts/activeadmin/trumbowyg/langs/rs.js +1 -1
  34. data/app/assets/javascripts/activeadmin/trumbowyg/langs/rs_latin.js +1 -1
  35. data/app/assets/javascripts/activeadmin/trumbowyg/langs/sl.js +10 -6
  36. data/app/assets/javascripts/activeadmin/trumbowyg/langs/sl.min.js +2 -1
  37. data/app/assets/javascripts/activeadmin/trumbowyg/langs/sq.js +2 -2
  38. data/app/assets/javascripts/activeadmin/trumbowyg/langs/sv.js +1 -0
  39. data/app/assets/javascripts/activeadmin/trumbowyg/langs/sv.min.js +1 -1
  40. data/app/assets/javascripts/activeadmin/trumbowyg/langs/th.js +33 -33
  41. data/app/assets/javascripts/activeadmin/trumbowyg/langs/tr.js +5 -3
  42. data/app/assets/javascripts/activeadmin/trumbowyg/langs/tr.min.js +1 -1
  43. data/app/assets/javascripts/activeadmin/trumbowyg/langs/zh_cn.js +1 -1
  44. data/app/assets/javascripts/activeadmin/trumbowyg/langs/zh_tw.js +1 -1
  45. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/allowtagsfrompaste/trumbowyg.allowtagsfrompaste.min.js +11 -0
  46. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/base64/trumbowyg.base64.js +28 -1
  47. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/base64/trumbowyg.base64.min.js +8 -1
  48. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.min.js +11 -0
  49. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/trumbowyg.colors.js +39 -2
  50. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/trumbowyg.colors.min.js +10 -1
  51. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/ui/sass/trumbowyg.colors.scss +3 -3
  52. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/ui/trumbowyg.colors.css +45 -40
  53. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/colors/ui/trumbowyg.colors.min.css +1 -1
  54. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/trumbowyg.emoji.js +916 -848
  55. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/trumbowyg.emoji.min.js +9 -1
  56. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/ui/sass/trumbowyg.emoji.scss +3 -3
  57. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/ui/trumbowyg.emoji.css +23 -18
  58. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/emoji/ui/trumbowyg.emoji.min.css +1 -1
  59. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/fontfamily/trumbowyg.fontfamily.js +22 -7
  60. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/fontfamily/trumbowyg.fontfamily.min.js +1 -1
  61. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/fontsize/trumbowyg.fontsize.js +100 -8
  62. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/fontsize/trumbowyg.fontsize.min.js +1 -1
  63. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/trumbowyg.giphy.js +251 -172
  64. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/trumbowyg.giphy.min.js +1 -1
  65. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/ui/sass/trumbowyg.giphy.scss +17 -16
  66. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/ui/trumbowyg.giphy.css +60 -47
  67. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/ui/trumbowyg.giphy.min.css +2 -2
  68. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/highlight/trumbowyg.highlight.js +24 -4
  69. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/highlight/trumbowyg.highlight.min.js +1 -1
  70. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/highlight/ui/sass/trumbowyg.highlight.scss +12 -12
  71. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/highlight/ui/trumbowyg.highlight.css +13 -10
  72. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/highlight/ui/trumbowyg.highlight.min.css +2 -2
  73. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/history/trumbowyg.history.js +6 -61
  74. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/history/trumbowyg.history.min.js +8 -1
  75. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/indent/trumbowyg.indent.js +31 -2
  76. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/indent/trumbowyg.indent.min.js +9 -1
  77. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/insertaudio/trumbowyg.insertaudio.js +18 -0
  78. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/insertaudio/trumbowyg.insertaudio.min.js +8 -1
  79. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/lineheight/trumbowyg.lineheight.js +50 -5
  80. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/lineheight/trumbowyg.lineheight.min.js +1 -1
  81. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mathml/trumbowyg.mathml.js +97 -50
  82. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mathml/trumbowyg.mathml.min.js +8 -1
  83. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mathml/ui/sass/trumbowyg.mathml.scss +31 -26
  84. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mathml/ui/trumbowyg.mathml.css +29 -21
  85. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mathml/ui/trumbowyg.mathml.min.css +2 -2
  86. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mention/trumbowyg.mention.js +12 -0
  87. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mention/trumbowyg.mention.min.js +10 -1
  88. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mention/ui/sass/trumbowyg.mention.scss +3 -3
  89. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mention/ui/trumbowyg.mention.css +16 -17
  90. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/mention/ui/trumbowyg.mention.min.css +2 -2
  91. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/noembed/trumbowyg.noembed.js +51 -20
  92. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/noembed/trumbowyg.noembed.min.js +8 -1
  93. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/pasteembed/trumbowyg.pasteembed.js +36 -53
  94. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/pasteembed/trumbowyg.pasteembed.min.js +10 -1
  95. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/pasteimage/trumbowyg.pasteimage.min.js +9 -0
  96. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/preformatted/trumbowyg.preformatted.js +12 -0
  97. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/preformatted/trumbowyg.preformatted.min.js +8 -1
  98. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/resizimg/trumbowyg.resizimg.min.js +3 -1
  99. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/ruby/trumbowyg.ruby.js +20 -0
  100. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/ruby/trumbowyg.ruby.min.js +10 -1
  101. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/trumbowyg.specialchars.js +18 -0
  102. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/trumbowyg.specialchars.min.js +8 -1
  103. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/ui/sass/trumbowyg.specialchars.scss +3 -3
  104. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/ui/trumbowyg.specialchars.css +25 -19
  105. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/specialchars/ui/trumbowyg.specialchars.min.css +1 -1
  106. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/speechrecognition/trumbowyg.speechrecognition.js +198 -0
  107. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/speechrecognition/trumbowyg.speechrecognition.min.js +11 -0
  108. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/trumbowyg.table.js +1436 -158
  109. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/trumbowyg.table.min.js +11 -1
  110. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/ui/sass/trumbowyg.table.scss +157 -32
  111. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/ui/trumbowyg.table.css +143 -22
  112. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/table/ui/trumbowyg.table.min.css +2 -2
  113. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/template/trumbowyg.template.js +9 -0
  114. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/template/trumbowyg.template.min.js +1 -1
  115. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/tenor/trumbowyg.tenor.js +319 -0
  116. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/tenor/trumbowyg.tenor.min.js +1 -0
  117. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/tenor/ui/sass/trumbowyg.tenor.scss +124 -0
  118. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/tenor/ui/trumbowyg.tenor.css +119 -0
  119. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/tenor/ui/trumbowyg.tenor.min.css +2 -0
  120. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/upload/trumbowyg.upload.js +119 -76
  121. data/app/assets/javascripts/activeadmin/trumbowyg/plugins/upload/trumbowyg.upload.min.js +13 -1
  122. data/app/assets/javascripts/activeadmin/trumbowyg/trumbowyg.js +126 -80
  123. data/app/assets/javascripts/activeadmin/trumbowyg/trumbowyg.min.js +2 -12
  124. data/app/assets/stylesheets/activeadmin/_trumbowyg_input.scss +3 -1
  125. data/app/assets/stylesheets/activeadmin/trumbowyg/trumbowyg.css +776 -0
  126. data/app/assets/stylesheets/activeadmin/trumbowyg/trumbowyg.min.css +3 -0
  127. data/app/assets/stylesheets/activeadmin/trumbowyg/trumbowyg.min.css.map +1 -0
  128. data/lib/activeadmin/trumbowyg/version.rb +1 -1
  129. data/lib/tasks/trumbowyg.rake +2 -2
  130. metadata +23 -26
  131. data/app/assets/javascripts/activeadmin/trumbowyg/langs/no_nb.min.js +0 -10
  132. data/app/assets/stylesheets/activeadmin/trumbowyg/trumbowyg.scss +0 -836
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Trumbowyg v2.25.1 - A lightweight WYSIWYG editor
2
+ * Trumbowyg v2.31.0 - A lightweight WYSIWYG editor
3
3
  * Trumbowyg plugin stylesheet
4
4
  * ------------------------
5
- * @link http://alex-d.github.io/Trumbowyg
5
+ * @link https://alex-d.github.io/Trumbowyg/
6
6
  * @license MIT
7
7
  * @author Alexandre Demode (Alex-D)
8
8
  * Twitter : @AlexandreDemode
@@ -11,16 +11,16 @@
11
11
 
12
12
  .trumbowyg-giphy-button svg {
13
13
  -webkit-transform: scale(1.22);
14
- -ms-transform: scale(1.22);
15
- -o-transform: scale(1.22);
16
- transform: scale(1.22); }
14
+ transform: scale(1.22);
15
+ }
17
16
 
18
17
  .trumbowyg-giphy-search {
19
18
  display: block;
20
19
  width: 80%;
21
20
  margin: 5%;
22
21
  padding-left: 10px;
23
- padding-right: 150px; }
22
+ padding-right: 150px;
23
+ }
24
24
 
25
25
  .trumbowyg-giphy-close {
26
26
  position: absolute;
@@ -29,12 +29,15 @@
29
29
  width: 30px;
30
30
  height: 30px;
31
31
  background: none;
32
- border: 1px solid transparent; }
33
- .trumbowyg-giphy-close:hover, .trumbowyg-giphy-close:focus {
34
- outline: none;
35
- background: #ecf0f1; }
36
- .trumbowyg-giphy-close:focus {
37
- border-color: rgba(0, 0, 0, 0.3); }
32
+ border: 1px solid transparent;
33
+ }
34
+ .trumbowyg-giphy-close:hover, .trumbowyg-giphy-close:focus {
35
+ outline: none;
36
+ background: #ecf0f1;
37
+ }
38
+ .trumbowyg-giphy-close:focus {
39
+ border-color: rgba(0, 0, 0, 0.3);
40
+ }
38
41
 
39
42
  .trumbowyg-powered-by-giphy {
40
43
  position: absolute;
@@ -44,23 +47,27 @@
44
47
  -webkit-user-select: none;
45
48
  -moz-user-select: none;
46
49
  -ms-user-select: none;
47
- user-select: none; }
48
- .trumbowyg-powered-by-giphy span {
49
- text-transform: uppercase;
50
- font-weight: bold;
51
- font-size: 10px;
52
- opacity: 0.6; }
53
- .trumbowyg-powered-by-giphy svg {
54
- width: 66px;
55
- height: 15px;
56
- vertical-align: bottom;
57
- margin-left: 6px;
58
- opacity: 0.45; }
50
+ user-select: none;
51
+ }
52
+ .trumbowyg-powered-by-giphy span {
53
+ text-transform: uppercase;
54
+ font-weight: bold;
55
+ font-size: 10px;
56
+ opacity: 0.6;
57
+ }
58
+ .trumbowyg-powered-by-giphy svg {
59
+ width: 66px;
60
+ height: 15px;
61
+ vertical-align: middle;
62
+ margin-left: 6px;
63
+ opacity: 0.45;
64
+ }
59
65
 
60
66
  .trumbowyg-giphy-modal-scroll {
61
67
  overflow: auto;
62
68
  overflow-x: hidden;
63
- height: 240px; }
69
+ height: 240px;
70
+ }
64
71
 
65
72
  .trumbowyg-giphy-modal {
66
73
  padding: 0 5%;
@@ -69,29 +76,35 @@
69
76
  columns: 3;
70
77
  -webkit-column-gap: 10px;
71
78
  -moz-column-gap: 10px;
72
- column-gap: 10px; }
73
- .trumbowyg-giphy-modal .trumbowyg-giphy-no-result {
74
- width: 250%;
75
- margin: 13% 0 0 29%; }
76
- .trumbowyg-giphy-modal .trumbowyg-giphy-offline {
77
- font-size: 18px;
78
- width: 305%;
79
- height: 600px;
80
- margin-top: 95px;
81
- text-align: center; }
79
+ column-gap: 10px;
80
+ }
81
+ .trumbowyg-giphy-modal .trumbowyg-giphy-no-result {
82
+ width: 250%;
83
+ margin: 13% 0 0 29%;
84
+ }
85
+ .trumbowyg-giphy-modal .trumbowyg-giphy-offline {
86
+ font-size: 18px;
87
+ width: 305%;
88
+ height: 600px;
89
+ margin-top: 95px;
90
+ text-align: center;
91
+ }
82
92
 
83
93
  .trumbowyg-giphy-modal .img-container {
84
94
  width: 100%;
85
95
  margin-bottom: 10px;
86
- background-color: #ecf0f1; }
87
- .trumbowyg-giphy-modal .img-container img {
88
- width: 100%;
89
- cursor: pointer;
90
- opacity: 0;
91
- -webkit-transition: opacity 150ms;
92
- -o-transition: opacity 150ms;
93
- transition: opacity 150ms; }
94
- .trumbowyg-giphy-modal .img-container img:hover, .trumbowyg-giphy-modal .img-container img:focus {
95
- border: #2ecc71 solid 3px; }
96
- .trumbowyg-giphy-modal .img-container img.tbw-loaded {
97
- opacity: 1; }
96
+ background-color: #ecf0f1;
97
+ }
98
+ .trumbowyg-giphy-modal .img-container img {
99
+ width: 100%;
100
+ cursor: pointer;
101
+ opacity: 0;
102
+ -webkit-transition: opacity 150ms;
103
+ transition: opacity 150ms;
104
+ }
105
+ .trumbowyg-giphy-modal .img-container img:hover, .trumbowyg-giphy-modal .img-container img:focus {
106
+ border: #2ecc71 solid 3px;
107
+ }
108
+ .trumbowyg-giphy-modal .img-container img.tbw-loaded {
109
+ opacity: 1;
110
+ }
@@ -1,2 +1,2 @@
1
- /** Trumbowyg v2.25.1 - 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}
1
+ /** Trumbowyg v2.31.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);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:middle;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;transition:opacity 150ms}.trumbowyg-giphy-modal .img-container img:focus,.trumbowyg-giphy-modal .img-container img:hover{border:#2ecc71 solid 3px}.trumbowyg-giphy-modal .img-container img.tbw-loaded{opacity:1}
@@ -184,7 +184,7 @@
184
184
  return [
185
185
  '<pre class="language-' + language + '" ' + (lineHighlight ? 'data-line="' + lineHighlight + '"' : '') + '>',
186
186
  '<code class="language-' + language + '">' + Prism.highlight(text, Prism.languages[language]) + '</code>',
187
- '</pre>',
187
+ '</pre>'
188
188
  ].join('');
189
189
  }
190
190
 
@@ -198,16 +198,16 @@
198
198
  var prismLanguageKeys = Object.keys(Prism.languages);
199
199
 
200
200
  var options = prismLanguageKeys.filter(function (languageKey) {
201
- return languageNameKeys.indexOf(languageKey) >= 0;
201
+ return languageNameKeys.indexOf(languageKey) >= 0;
202
202
  }).map(function (languageKey) {
203
203
  return {
204
204
  id: languageKey,
205
205
  name: languageNames[languageKey]
206
206
  };
207
- }).sort(function(a, b){
207
+ }).sort(function (a, b) {
208
208
  // Sort languages by name
209
209
  return a.name.localeCompare(b.name);
210
- }).map(function( language){
210
+ }).map(function (language) {
211
211
  // Generate a list of options
212
212
  return '<option value="' + escapeHtml(language.id) + '">' + escapeHtml(language.name) + '</option>';
213
213
  }).join('');
@@ -269,6 +269,14 @@
269
269
  highlight: 'Code syntax highlight',
270
270
  highlightLine: 'Highlight lines, e.g.: 1,3-5'
271
271
  },
272
+ az: {
273
+ highlight: 'Kod birləşməsini vurğulamaq',
274
+ highlightLine: 'Sətirləri vurğulamaq, məsələn: 1,3-5'
275
+ },
276
+ by: {
277
+ highlight: 'Падсветка сінтаксісу кода',
278
+ highlightLine: 'Падсвятліць радкі, напр.: 1,3-5'
279
+ },
272
280
  es: {
273
281
  highlight: 'Resaltado de sintaxis de código',
274
282
  highlightLine: 'Resaltar lineas, ej: 1,3-5'
@@ -286,6 +294,18 @@
286
294
  pt_br: {
287
295
  highlight: 'Realçar sintaxe de código'
288
296
  },
297
+ ru: {
298
+ highlight: 'Подсветка синтаксиса кода',
299
+ highlightLine: 'Подсветить строки, напр.: 1,3-5'
300
+ },
301
+ sl: {
302
+ highlight: 'Označi sintakso kode',
303
+ highlightLine: 'Označi številko vrstice, npr.: 1,3-5'
304
+ },
305
+ tr: {
306
+ highlight: 'Kod sözdizimini vurgula',
307
+ highlightLine: 'Vurgu çizgileri, örneğin: 1,3-5'
308
+ }
289
309
  // jshint camelcase:true
290
310
  },
291
311
  // Add our plugin to Trumbowyg registered plugins
@@ -1 +1 @@
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
+ !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 l(e){var t=e.o.plugins.highlight.languageNames,l=Object.keys(t);return Object.keys(i.languages).filter((function(e){return l.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 o(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>',l(e)," </select>","</div>",'<div class="'+e.o.prefix+'highlight-form-group">',' <textarea class="'+e.o.prefix+'highlight-form-control code"></textarea>',"</div>",o(e)].join("\n")),a=t.find(".language"),s=t.find(".code"),n=t.find(".trumbowyg-line-highlight");t.on("tbwconfirm",(function(){var t,l,o;e.restoreRange(),e.execCmd("insertHTML",(t=s.val(),l=a.val(),o=n.val(),['<pre class="language-'+l+'" '+(o?'data-line="'+o+'"':"")+">",'<code class="language-'+l+'">'+i.highlight(t,i.languages[l])+"</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"},az:{highlight:"Kod birləşməsini vurğulamaq",highlightLine:"Sətirləri vurğulamaq, məsələn: 1,3-5"},by:{highlight:"Падсветка сінтаксісу кода",highlightLine:"Падсвятліць радкі, напр.: 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"},ru:{highlight:"Подсветка синтаксиса кода",highlightLine:"Подсветить строки, напр.: 1,3-5"},sl:{highlight:"Označi sintakso kode",highlightLine:"Označi številko vrstice, npr.: 1,3-5"},tr:{highlight:"Kod sözdizimini vurgula",highlightLine:"Vurgu çizgileri, örneğin: 1,3-5"}},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,8 +1,8 @@
1
1
  /**
2
- * Trumbowyg v2.25.1 - A lightweight WYSIWYG editor
3
- * Default stylesheet for Trumbowyg editor plugin
2
+ * Trumbowyg v2.31.0 - A lightweight WYSIWYG editor
3
+ * Trumbowyg plugin stylesheet
4
4
  * ------------------------
5
- * @link http://alex-d.github.io/Trumbowyg
5
+ * @link https://alex-d.github.io/Trumbowyg/
6
6
  * @license MIT
7
7
  * @author Alexandre Demode (Alex-D)
8
8
  * Twitter : @AlexandreDemode
@@ -10,16 +10,16 @@
10
10
  */
11
11
 
12
12
  .trumbowyg-highlight-form-group {
13
- margin: 15px 10px;
13
+ margin: 15px 10px;
14
14
 
15
- .trumbowyg-highlight-form-control {
16
- width: 100%;
17
- border: 1px solid #DEDEDE;
18
- font-size: 14px;
19
- padding: 7px;
15
+ .trumbowyg-highlight-form-control {
16
+ width: 100%;
17
+ border: 1px solid #DEDEDE;
18
+ font-size: 14px;
19
+ padding: 7px;
20
20
 
21
- &.code {
22
- height: 200px;
21
+ &.code {
22
+ height: 200px;
23
+ }
23
24
  }
24
- }
25
25
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Trumbowyg v2.25.1 - A lightweight WYSIWYG editor
2
+ * Trumbowyg v2.31.0 - A lightweight WYSIWYG editor
3
3
  * Trumbowyg plugin stylesheet
4
4
  * ------------------------
5
- * @link http://alex-d.github.io/Trumbowyg
5
+ * @link https://alex-d.github.io/Trumbowyg/
6
6
  * @license MIT
7
7
  * @author Alexandre Demode (Alex-D)
8
8
  * Twitter : @AlexandreDemode
@@ -10,11 +10,14 @@
10
10
  */
11
11
 
12
12
  .trumbowyg-highlight-form-group {
13
- margin: 15px 10px; }
14
- .trumbowyg-highlight-form-group .trumbowyg-highlight-form-control {
15
- width: 100%;
16
- border: 1px solid #DEDEDE;
17
- font-size: 14px;
18
- padding: 7px; }
19
- .trumbowyg-highlight-form-group .trumbowyg-highlight-form-control.code {
20
- height: 200px; }
13
+ margin: 15px 10px;
14
+ }
15
+ .trumbowyg-highlight-form-group .trumbowyg-highlight-form-control {
16
+ width: 100%;
17
+ border: 1px solid #DEDEDE;
18
+ font-size: 14px;
19
+ padding: 7px;
20
+ }
21
+ .trumbowyg-highlight-form-group .trumbowyg-highlight-form-control.code {
22
+ height: 200px;
23
+ }
@@ -1,2 +1,2 @@
1
- /** Trumbowyg v2.25.1 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */
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}
1
+ /** Trumbowyg v2.31.0 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg/ - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */
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}
@@ -9,66 +9,11 @@
9
9
  (function ($) {
10
10
  'use strict';
11
11
  $.extend(true, $.trumbowyg, {
12
- langs: {
13
- // jshint camelcase:false
14
- en: {
15
- history: {
16
- redo: 'Redo',
17
- undo: 'Undo'
18
- }
19
- },
20
- da: {
21
- history: {
22
- redo: 'Annuller fortryd',
23
- undo: 'Fortryd'
24
- }
25
- },
26
- de: {
27
- history: {
28
- redo: 'Wiederholen',
29
- undo: 'Rückgängig'
30
- }
31
- },
32
- et: {
33
- history: {
34
- redo: 'Võta tagasi',
35
- undo: 'Tee uuesti'
36
- }
37
- },
38
- fr: {
39
- history: {
40
- redo: 'Annuler',
41
- undo: 'Rétablir'
42
- }
43
- },
44
- hu: {
45
- history: {
46
- redo: 'Visszállít',
47
- undo: 'Visszavon'
48
- }
49
- },
50
- ko: {
51
- history: {
52
- redo: '다시 실행',
53
- undo: '되돌리기'
54
- }
55
- },
56
- pt_br: {
57
- history: {
58
- redo: 'Refazer',
59
- undo: 'Desfazer'
60
- }
61
- },
62
- zh_tw: {
63
- history: {
64
- redo: '重做',
65
- undo: '復原'
66
- }
67
- },
68
- // jshint camelcase:true
69
- },
70
12
  plugins: {
71
13
  history: {
14
+ destroy: function (t) {
15
+ t.$c.off('tbwinit.history tbwchange.history');
16
+ },
72
17
  init: function (t) {
73
18
  t.o.plugins.history = $.extend(true, {
74
19
  _stack: [],
@@ -77,7 +22,7 @@
77
22
  }, t.o.plugins.history || {});
78
23
 
79
24
  var btnBuildDefRedo = {
80
- title: t.lang.history.redo,
25
+ title: t.lang.redo,
81
26
  ico: 'redo',
82
27
  key: 'Y',
83
28
  fn: function () {
@@ -98,7 +43,7 @@
98
43
  };
99
44
 
100
45
  var btnBuildDefUndo = {
101
- title: t.lang.history.undo,
46
+ title: t.lang.undo,
102
47
  ico: 'undo',
103
48
  key: 'Z',
104
49
  fn: function () {
@@ -217,7 +162,7 @@
217
162
  }
218
163
  };
219
164
 
220
- t.$c.on('tbwinit tbwchange', pushToHistory);
165
+ t.$c.on('tbwinit.history tbwchange.history', pushToHistory);
221
166
 
222
167
  t.addBtnDef('historyRedo', btnBuildDefRedo);
223
168
  t.addBtnDef('historyUndo', btnBuildDefUndo);
@@ -1 +1,8 @@
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);
1
+ /*/* ===========================================================
2
+ * trumbowyg.history.js v1.0
3
+ * history plugin for Trumbowyg
4
+ * http://alex-d.github.com/Trumbowyg
5
+ * ===========================================================
6
+ * Author : Sven Dunemann [dunemann@forelabs.eu]
7
+ */
8
+ !function(i){"use strict";i.extend(!0,i.trumbowyg,{plugins:{history:{destroy:function(i){i.$c.off("tbwinit.history tbwchange.history")},init:function(t){t.o.plugins.history=i.extend(!0,{_stack:[],_index:-1,_focusEl:void 0},t.o.plugins.history||{});var o={title:t.lang.redo,ico:"redo",key:"Y",fn:function(){if(t.o.plugins.history._index<t.o.plugins.history._stack.length-1){t.o.plugins.history._index+=1;var i=t.o.plugins.history._index,o=t.o.plugins.history._stack[i];t.execCmd("html",o),t.o.plugins.history._stack[i]=t.$ed.html(),r(),s()}}},n={title:t.lang.undo,ico:"undo",key:"Z",fn:function(){if(t.o.plugins.history._index>0){t.o.plugins.history._index-=1;var i=t.o.plugins.history._index,o=t.o.plugins.history._stack[i];t.execCmd("html",o),t.o.plugins.history._stack[i]=t.$ed.html(),r(),s()}}},s=function(){var i=t.o.plugins.history._index,o=t.o.plugins.history._stack.length,n=0!==o&&i!==o-1;e("historyUndo",i>0),e("historyRedo",n)},e=function(i,o){var n=t.$box.find(".trumbowyg-"+i+"-button");o?n.removeClass("trumbowyg-disable"):n.hasClass("trumbowyg-disable")||n.addClass("trumbowyg-disable")},l=function(i,t){if(i===t)return!0;if(null==i||null==t)return!1;if(i.length!==t.length)return!1;for(var o=0;o<i.length;o+=1)if(i[o]!==t[o])return!1;return!0},r=function(){var i=t.doc.getSelection().focusNode,o=t.doc.createRange();i.childNodes.length>0&&(o.setStartAfter(i.childNodes[i.childNodes.length-1]),o.setEndAfter(i.childNodes[i.childNodes.length-1]),t.doc.getSelection().removeAllRanges(),t.doc.getSelection().addRange(o))};t.$c.on("tbwinit.history tbwchange.history",(function(){var o,n,e=t.o.plugins.history._index,r=t.o.plugins.history._stack,d=r.slice(-1)[0]||"<p></p>",u=r[e],h=t.$ed.html(),c=t.doc.getSelection().focusNode,g="",a=t.o.plugins.history._focusEl;o=i("<div>"+d+"</div>").find("*").map((function(){return this.localName})),n=i("<div>"+h+"</div>").find("*").map((function(){return this.localName})),c&&(t.o.plugins.history._focusEl=c,g=c.outerHTML||c.textContent),h!==u&&(g.slice(-1).match(/\s/)||!l(o,n)||t.o.plugins.history._index<=0||c!==a?(t.o.plugins.history._index+=1,t.o.plugins.history._stack=r.slice(0,t.o.plugins.history._index),t.o.plugins.history._stack.push(h)):t.o.plugins.history._stack[e]=h,s())})),t.addBtnDef("historyRedo",o),t.addBtnDef("historyUndo",n)}}}})}(jQuery);
@@ -1,4 +1,3 @@
1
-
2
1
  /* ===========================================================
3
2
  * trumbowyg.indent.js v1.0
4
3
  * Indent or Outdent plugin for Trumbowyg
@@ -8,15 +7,28 @@
8
7
  * Website : https://github.com/Fabacks
9
8
  */
10
9
 
11
- (function ($) {
10
+ (function ($) {
12
11
  'use strict';
13
12
 
14
13
  $.extend(true, $.trumbowyg, {
15
14
  langs: {
15
+ // jshint camelcase:false
16
16
  en: {
17
17
  indent: 'Indent',
18
18
  outdent: 'Outdent'
19
19
  },
20
+ az: {
21
+ indent: 'Girinti',
22
+ outdent: 'Çıxıntı'
23
+ },
24
+ by: {
25
+ indent: 'Водступ',
26
+ outdent: 'Выступ'
27
+ },
28
+ de: {
29
+ indent: 'Einzug vergrößern',
30
+ outdent: 'Einzug verkleinern'
31
+ },
20
32
  et: {
21
33
  indent: 'Taande suurendamine',
22
34
  outdent: 'Taande vähendamine'
@@ -24,7 +36,24 @@
24
36
  fr: {
25
37
  indent: 'Augmenter le retrait',
26
38
  outdent: 'Diminuer le retrait'
39
+ },
40
+ pt_br: {
41
+ indent: 'Aumentar Recuo',
42
+ outdent: 'Diminuir Recuo'
43
+ },
44
+ ru: {
45
+ indent: 'Отступ',
46
+ outdent: 'Выступ'
47
+ },
48
+ sl: {
49
+ indent: 'Povečaj zamik',
50
+ outdent: 'Zmanjšaj zamik'
51
+ },
52
+ tr: {
53
+ indent: 'Girinti',
54
+ outdent: 'Çıkıntı'
27
55
  }
56
+ // jshint camelcase:true
28
57
  }
29
58
  });
30
59
 
@@ -1 +1,9 @@
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);
1
+ /* ===========================================================
2
+ * trumbowyg.indent.js v1.0
3
+ * Indent or Outdent plugin for Trumbowyg
4
+ * http://alex-d.github.com/Trumbowyg
5
+ * ===========================================================
6
+ * Author : Fabacks
7
+ * Website : https://github.com/Fabacks
8
+ */
9
+ !function(n){"use strict";n.extend(!0,n.trumbowyg,{langs:{en:{indent:"Indent",outdent:"Outdent"},az:{indent:"Girinti",outdent:"Çıxıntı"},by:{indent:"Водступ",outdent:"Выступ"},de:{indent:"Einzug vergrößern",outdent:"Einzug verkleinern"},et:{indent:"Taande suurendamine",outdent:"Taande vähendamine"},fr:{indent:"Augmenter le retrait",outdent:"Diminuer le retrait"},pt_br:{indent:"Aumentar Recuo",outdent:"Diminuir Recuo"},ru:{indent:"Отступ",outdent:"Выступ"},sl:{indent:"Povečaj zamik",outdent:"Zmanjšaj zamik"},tr:{indent:"Girinti",outdent:"Çıkıntı"}}}),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);
@@ -37,9 +37,24 @@
37
37
  en: {
38
38
  insertAudio: 'Insert Audio'
39
39
  },
40
+ az: {
41
+ insertAudio: 'Səs yerləşdir'
42
+ },
43
+ by: {
44
+ insertAudio: 'Уставіць аўдыё'
45
+ },
46
+ ca: {
47
+ insertAudio: 'Inserir Audio'
48
+ },
40
49
  da: {
41
50
  insertAudio: 'Indsæt lyd'
42
51
  },
52
+ de: {
53
+ insertAudio: 'Audio einfügen'
54
+ },
55
+ es: {
56
+ insertAudio: 'Insertar Audio'
57
+ },
43
58
  et: {
44
59
  insertAudio: 'Lisa helifail'
45
60
  },
@@ -61,6 +76,9 @@
61
76
  ru: {
62
77
  insertAudio: 'Вставить аудио'
63
78
  },
79
+ sl: {
80
+ insertAudio: 'Vstavi zvočno datoteko'
81
+ },
64
82
  tr: {
65
83
  insertAudio: 'Ses Ekle'
66
84
  },
@@ -1 +1,8 @@
1
- !function(e){"use strict";var r={src:{label:"URL",required:!0},autoplay:{label:"AutoPlay",required:!1,type:"checkbox"},muted:{label:"Muted",required:!1,type:"checkbox"},preload:{label:"preload options",required:!1}};e.extend(!0,e.trumbowyg,{langs:{en:{insertAudio:"Insert Audio"},da:{insertAudio:"Indsæt lyd"},et:{insertAudio:"Lisa helifail"},fr:{insertAudio:"Insérer un son"},hu:{insertAudio:"Audio beszúrás"},ja:{insertAudio:"音声の挿入"},ko:{insertAudio:"소리 넣기"},pt_br:{insertAudio:"Inserir áudio"},ru:{insertAudio:"Вставить аудио"},tr:{insertAudio:"Ses Ekle"}},plugins:{insertAudio:{init:function(i){var t={fn:function(){i.openModalInsert(i.lang.insertAudio,r,(function(r){var t="<audio controls";r.src&&(t+=" src='"+r.src+"'"),r.autoplay&&(t+=" autoplay"),r.muted&&(t+=" muted"),r.preload&&(t+=" preload='"+r+"'");var n=e(t+="></audio>")[0];return i.range.deleteContents(),i.range.insertNode(n),!0}))}};i.addBtnDef("insertAudio",t)}}}})}(jQuery);
1
+ /*/* ===========================================================
2
+ * trumbowyg.insertaudio.js v1.0
3
+ * InsertAudio plugin for Trumbowyg
4
+ * http://alex-d.github.com/Trumbowyg
5
+ * ===========================================================
6
+ * Author : Adam Hess (AdamHess)
7
+ */
8
+ !function(e){"use strict";var i={src:{label:"URL",required:!0},autoplay:{label:"AutoPlay",required:!1,type:"checkbox"},muted:{label:"Muted",required:!1,type:"checkbox"},preload:{label:"preload options",required:!1}};e.extend(!0,e.trumbowyg,{langs:{en:{insertAudio:"Insert Audio"},az:{insertAudio:"Səs yerləşdir"},by:{insertAudio:"Уставіць аўдыё"},ca:{insertAudio:"Inserir Audio"},da:{insertAudio:"Indsæt lyd"},de:{insertAudio:"Audio einfügen"},es:{insertAudio:"Insertar Audio"},et:{insertAudio:"Lisa helifail"},fr:{insertAudio:"Insérer un son"},hu:{insertAudio:"Audio beszúrás"},ja:{insertAudio:"音声の挿入"},ko:{insertAudio:"소리 넣기"},pt_br:{insertAudio:"Inserir áudio"},ru:{insertAudio:"Вставить аудио"},sl:{insertAudio:"Vstavi zvočno datoteko"},tr:{insertAudio:"Ses Ekle"}},plugins:{insertAudio:{init:function(r){var n={fn:function(){r.openModalInsert(r.lang.insertAudio,i,(function(i){var n="<audio controls";i.src&&(n+=" src='"+i.src+"'"),i.autoplay&&(n+=" autoplay"),i.muted&&(n+=" muted"),i.preload&&(n+=" preload='"+i+"'");var o=e(n+="></audio>")[0];return r.range.deleteContents(),r.range.insertNode(o),!0}))}};r.addBtnDef("insertAudio",n)}}}})}(jQuery);