wysiwyg-rails 2.2.3 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/froala_editor.min.js +6 -6
  3. data/app/assets/javascripts/languages/ar.js +5 -2
  4. data/app/assets/javascripts/languages/bs.js +5 -2
  5. data/app/assets/javascripts/languages/cs.js +5 -2
  6. data/app/assets/javascripts/languages/da.js +5 -2
  7. data/app/assets/javascripts/languages/de.js +14 -11
  8. data/app/assets/javascripts/languages/en_ca.js +5 -2
  9. data/app/assets/javascripts/languages/en_gb.js +5 -2
  10. data/app/assets/javascripts/languages/es.js +6 -3
  11. data/app/assets/javascripts/languages/et.js +5 -2
  12. data/app/assets/javascripts/languages/fa.js +5 -2
  13. data/app/assets/javascripts/languages/fi.js +6 -3
  14. data/app/assets/javascripts/languages/fr.js +5 -2
  15. data/app/assets/javascripts/languages/he.js +5 -2
  16. data/app/assets/javascripts/languages/hr.js +5 -4
  17. data/app/assets/javascripts/languages/hu.js +5 -2
  18. data/app/assets/javascripts/languages/id.js +6 -2
  19. data/app/assets/javascripts/languages/it.js +6 -3
  20. data/app/assets/javascripts/languages/ja.js +5 -2
  21. data/app/assets/javascripts/languages/ko.js +5 -2
  22. data/app/assets/javascripts/languages/me.js +5 -2
  23. data/app/assets/javascripts/languages/nb.js +6 -3
  24. data/app/assets/javascripts/languages/nl.js +6 -3
  25. data/app/assets/javascripts/languages/pl.js +5 -2
  26. data/app/assets/javascripts/languages/pt_br.js +6 -3
  27. data/app/assets/javascripts/languages/pt_pt.js +5 -2
  28. data/app/assets/javascripts/languages/ro.js +6 -3
  29. data/app/assets/javascripts/languages/ru.js +6 -3
  30. data/app/assets/javascripts/languages/sr.js +5 -2
  31. data/app/assets/javascripts/languages/sv.js +5 -2
  32. data/app/assets/javascripts/languages/th.js +5 -2
  33. data/app/assets/javascripts/languages/tr.js +5 -2
  34. data/app/assets/javascripts/languages/ua.js +5 -2
  35. data/app/assets/javascripts/languages/zh_cn.js +9 -6
  36. data/app/assets/javascripts/languages/zh_tw.js +6 -3
  37. data/app/assets/javascripts/plugins/align.min.js +1 -1
  38. data/app/assets/javascripts/plugins/char_counter.min.js +1 -1
  39. data/app/assets/javascripts/plugins/code_beautifier.min.js +1 -1
  40. data/app/assets/javascripts/plugins/code_view.min.js +1 -1
  41. data/app/assets/javascripts/plugins/colors.min.js +1 -1
  42. data/app/assets/javascripts/plugins/draggable.min.js +1 -1
  43. data/app/assets/javascripts/plugins/emoticons.min.js +1 -1
  44. data/app/assets/javascripts/plugins/entities.min.js +1 -1
  45. data/app/assets/javascripts/plugins/file.min.js +2 -2
  46. data/app/assets/javascripts/plugins/font_family.min.js +1 -1
  47. data/app/assets/javascripts/plugins/font_size.min.js +2 -2
  48. data/app/assets/javascripts/plugins/forms.min.js +1 -1
  49. data/app/assets/javascripts/plugins/fullscreen.min.js +1 -1
  50. data/app/assets/javascripts/plugins/image.min.js +3 -2
  51. data/app/assets/javascripts/plugins/image_manager.min.js +1 -1
  52. data/app/assets/javascripts/plugins/inline_style.min.js +1 -1
  53. data/app/assets/javascripts/plugins/line_breaker.min.js +2 -2
  54. data/app/assets/javascripts/plugins/link.min.js +2 -2
  55. data/app/assets/javascripts/plugins/lists.min.js +2 -2
  56. data/app/assets/javascripts/plugins/paragraph_format.min.js +1 -1
  57. data/app/assets/javascripts/plugins/paragraph_style.min.js +1 -1
  58. data/app/assets/javascripts/plugins/quick_insert.min.js +1 -1
  59. data/app/assets/javascripts/plugins/quote.min.js +1 -1
  60. data/app/assets/javascripts/plugins/save.min.js +1 -1
  61. data/app/assets/javascripts/plugins/table.min.js +1 -1
  62. data/app/assets/javascripts/plugins/url.min.js +1 -1
  63. data/app/assets/javascripts/plugins/video.min.js +2 -2
  64. data/app/assets/stylesheets/froala_editor.min.css +1 -1
  65. data/app/assets/stylesheets/froala_style.min.css +1 -1
  66. data/app/assets/stylesheets/plugins/char_counter.min.css +1 -1
  67. data/app/assets/stylesheets/plugins/code_view.min.css +1 -1
  68. data/app/assets/stylesheets/plugins/colors.min.css +1 -1
  69. data/app/assets/stylesheets/plugins/draggable.min.css +1 -1
  70. data/app/assets/stylesheets/plugins/emoticons.min.css +1 -1
  71. data/app/assets/stylesheets/plugins/file.min.css +1 -1
  72. data/app/assets/stylesheets/plugins/fullscreen.min.css +1 -1
  73. data/app/assets/stylesheets/plugins/image.min.css +1 -1
  74. data/app/assets/stylesheets/plugins/image_manager.min.css +1 -1
  75. data/app/assets/stylesheets/plugins/line_breaker.min.css +1 -1
  76. data/app/assets/stylesheets/plugins/quick_insert.min.css +1 -1
  77. data/app/assets/stylesheets/plugins/table.min.css +1 -1
  78. data/app/assets/stylesheets/plugins/video.min.css +1 -1
  79. data/app/assets/stylesheets/themes/dark.min.css +1 -1
  80. data/app/assets/stylesheets/themes/gray.min.css +1 -1
  81. data/app/assets/stylesheets/themes/red.min.css +1 -1
  82. data/app/assets/stylesheets/themes/royal.min.css +1 -1
  83. data/lib/wysiwyg-rails/version.rb +1 -1
  84. metadata +2 -2
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -106,7 +106,10 @@ $.FE.LANGUAGE['ko'] = {
106
106
 
107
107
  // Tables
108
108
  "Insert Table": "\ud14c\uc774\ube14 \uc0bd\uc785",
109
- "Header": "\ud5e4\ub354",
109
+ "Table Header": "\ud14c\uc774\ube14 \ud5e4\ub354",
110
+ "Remove Table": "\ud14c\uc774\ube14\uc744 \uc81c\uac70",
111
+ "Table Style": "\ud45c \uc2a4\ud0c0\uc77c",
112
+ "Horizontal Align": "\uc218\ud3c9 \uc815\ub82c",
110
113
  "Row": "\uc5f4",
111
114
  "Insert row above": "\uc55e\uc5d0 \uc5f4\uc744 \uc0bd\uc785",
112
115
  "Insert row below": "\ub4a4\uc5d0 \uc5f4\uc744 \uc0bd\uc785",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -106,7 +106,10 @@ $.FE.LANGUAGE['me'] = {
106
106
 
107
107
  // Tables
108
108
  "Insert Table": "Umetni tabelu",
109
- "Header": "Zaglavlje",
109
+ "Table Header": "Zaglavlje tabelu",
110
+ "Remove Table": "Izbri\u0161i tabelu",
111
+ "Table Style": "Tabelu stil",
112
+ "Horizontal Align": "Horizontalna poravnanje",
110
113
  "Row": "Red",
111
114
  "Insert row above": "Umetni red iznad",
112
115
  "Insert row below": "Umetni red ispod",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -106,7 +106,10 @@ $.FE.LANGUAGE['nb'] = {
106
106
 
107
107
  // Tables
108
108
  "Insert Table": "Sett inn tabell",
109
- "Header": "Header",
109
+ "Table Header": "Tabell header",
110
+ "Remove Table": "Fjern tabell",
111
+ "Table Style": "Tabell stil",
112
+ "Horizontal Align": "Horisontal justering",
110
113
  "Row": "Rad",
111
114
  "Insert row above": "Sett inn rad f\u00f8r",
112
115
  "Insert row below": "Sett in rad etter",
@@ -120,7 +123,7 @@ $.FE.LANGUAGE['nb'] = {
120
123
  "Horizontal split": "Horisontalt delt",
121
124
  "Vertical split": "Vertikal split",
122
125
  "Cell Background": "Celle bakgrunn",
123
- "Vertical Align": "Vertikal sluttar",
126
+ "Vertical Align": "Vertikal justering",
124
127
  "Top": "Topp",
125
128
  "Middle": "Midten",
126
129
  "Bottom": "Bunn",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -106,7 +106,10 @@ $.FE.LANGUAGE['nl'] = {
106
106
 
107
107
  // Tables
108
108
  "Insert Table": "Tabel invoegen",
109
- "Header": "Hoofd",
109
+ "Table Header": "Tabel hoofd",
110
+ "Remove Table": "Verwijder tafel",
111
+ "Table Style": "Tabelstijl",
112
+ "Horizontal Align": "Horizontale uitlijning",
110
113
  "Row": "Rij",
111
114
  "Insert row above": "Voeg rij boven toe",
112
115
  "Insert row below": "Voeg rij onder toe",
@@ -120,7 +123,7 @@ $.FE.LANGUAGE['nl'] = {
120
123
  "Horizontal split": "Horizontaal splitsen",
121
124
  "Vertical split": "Verticaal splitsen",
122
125
  "Cell Background": "Cel achtergrond",
123
- "Vertical Align": "Verticaal uitlijnen",
126
+ "Vertical Align": "Verticaal uitlijning",
124
127
  "Top": "Top",
125
128
  "Middle": "Midden",
126
129
  "Bottom": "Bodem",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -106,7 +106,10 @@ $.FE.LANGUAGE['pl'] = {
106
106
 
107
107
  // Tables
108
108
  "Insert Table": "Wstaw tabel\u0119",
109
- "Header": "Nag\u0142\u00f3wek",
109
+ "Table Header": "Nag\u0142\u00f3wek tabeli",
110
+ "Remove Table": "Usu\u0144 tabel\u0119",
111
+ "Table Style": "Styl tabeli",
112
+ "Horizontal Align": "Wyr\u00f3wnaj poziomy",
110
113
  "Row": "Wiersz",
111
114
  "Insert row above": "Wstaw wiersz przed",
112
115
  "Insert row below": "Wstaw wiersz po",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -106,7 +106,10 @@ $.FE.LANGUAGE['pt_br'] = {
106
106
 
107
107
  // Tables
108
108
  "Insert Table": "Inserir tabela",
109
- "Header": "Cabe\u00e7alho",
109
+ "Table Header": "Cabe\u00e7alho da tabela",
110
+ "Remove Table": "Remover mesa",
111
+ "Table Style": "estilo de tabela",
112
+ "Horizontal Align": "Alinhamento horizontal",
110
113
  "Row": "Linha",
111
114
  "Insert row above": "Inserir linha antes",
112
115
  "Insert row below": "Inserir linha depois",
@@ -120,7 +123,7 @@ $.FE.LANGUAGE['pt_br'] = {
120
123
  "Horizontal split": "Divis\u00e3o horizontal",
121
124
  "Vertical split": "Divis\u00e3o vertical",
122
125
  "Cell Background": "Fundo da c\u00e9lula",
123
- "Vertical Align": "Alinhar vertical",
126
+ "Vertical Align": "Alinhamento vertical",
124
127
  "Top": "Topo",
125
128
  "Middle": "Meio",
126
129
  "Bottom": "Fundo",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -106,7 +106,10 @@ $.FE.LANGUAGE['pt_pt'] = {
106
106
 
107
107
  // Tables
108
108
  "Insert Table": "Inserir tabela",
109
- "Header": "Cabe\u00e7alho",
109
+ "Table Header": "Cabe\u00e7alho da tabela",
110
+ "Remove Table": "Remover mesa",
111
+ "Table Style": "estilo de tabela",
112
+ "Horizontal Align": "Alinhamento horizontal",
110
113
  "Row": "Linha",
111
114
  "Insert row above": "Inserir linha antes",
112
115
  "Insert row below": "Inserir linha depois",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -107,7 +107,10 @@ $.FE.LANGUAGE['ro'] = {
107
107
 
108
108
  // Tables
109
109
  "Insert Table": "Inserare tabel",
110
- "Header": "Antet",
110
+ "Table Header": "Antet tabel",
111
+ "Remove Table": "\u0218terge tabel",
112
+ "Table Style": "Stil tabel",
113
+ "Horizontal Align": "Aliniere orizontal\u0103",
111
114
  "Row": "Linie",
112
115
  "Insert row above": "Insereaz\u0103 linie \u00eenainte",
113
116
  "Insert row below": "Insereaz\u0103 linie dup\u0103",
@@ -121,7 +124,7 @@ $.FE.LANGUAGE['ro'] = {
121
124
  "Horizontal split": "\u00cemparte orizontal",
122
125
  "Vertical split": "\u00cemparte vertical",
123
126
  "Cell Background": "Fundal celul\u0103",
124
- "Vertical Align": "Aliniere verticl\u0103",
127
+ "Vertical Align": "Aliniere vertical\u0103",
125
128
  "Top": "Sus",
126
129
  "Middle": "Mijloc",
127
130
  "Bottom": "Jos",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -106,7 +106,10 @@ $.FE.LANGUAGE['ru'] = {
106
106
 
107
107
  // Tables
108
108
  "Insert Table": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443",
109
- "Header": "\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a",
109
+ "Table Header": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0442\u0430\u0431\u043b\u0438\u0446\u044b",
110
+ "Remove Table": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443",
111
+ "Table Style": "\u0421\u0442\u0438\u043b\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b",
112
+ "Horizontal Align": "\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435",
110
113
  "Row": "\u0421\u0442\u0440\u043e\u043a\u0430",
111
114
  "Insert row above": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u0432\u0435\u0440\u0445\u0443",
112
115
  "Insert row below": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u043d\u0438\u0437\u0443",
@@ -131,7 +134,7 @@ $.FE.LANGUAGE['ru'] = {
131
134
 
132
135
  // Files
133
136
  "Upload File": "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b",
134
- "Drop file": "\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430",
137
+ "Drop file": "\u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u0441\u044e\u0434\u0430 \u0444\u0430\u0439\u043b",
135
138
 
136
139
  // Emoticons
137
140
  "Emoticons": "\u0421\u043c\u0430\u0439\u043b\u0438\u043a\u0438",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -106,7 +106,10 @@ $.FE.LANGUAGE['sr'] = {
106
106
 
107
107
  // Tables
108
108
  "Insert Table": "Umetni tabelu",
109
- "Header": "Zaglavlje",
109
+ "Table Header": "Zaglavlje tabele",
110
+ "Remove Table": "Uklanjanje tabele",
111
+ "Table Style": "Stil tabele",
112
+ "Horizontal Align": "Horizontalno poravnavanje",
110
113
  "Row": "Red",
111
114
  "Insert row above": "Umetni red iznad",
112
115
  "Insert row below": "Umetni red ispod",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -106,7 +106,10 @@ $.FE.LANGUAGE['sv'] = {
106
106
 
107
107
  // Tables
108
108
  "Insert Table": "Infoga tabell",
109
- "Header": "Header",
109
+ "Table Header": "Tabell huvud",
110
+ "Remove Table": "Ta bort tabellen",
111
+ "Table Style": "Tabellformat",
112
+ "Horizontal Align": "Horisontell justering",
110
113
  "Row": "Rad",
111
114
  "Insert row above": "Infoga rad f\u00f6re",
112
115
  "Insert row below": "Infoga rad efter",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -106,7 +106,10 @@ $.FE.LANGUAGE['th'] = {
106
106
 
107
107
  // Tables
108
108
  "Insert Table": "\u0e41\u0e17\u0e23\u0e01\u0e15\u0e32\u0e23\u0e32\u0e07",
109
- "Header": "\u0e2a\u0e48\u0e27\u0e19\u0e2b\u0e31\u0e27",
109
+ "Table Header": "\u0e2a\u0e48\u0e27\u0e19\u0e2b\u0e31\u0e27\u0e02\u0e2d\u0e07\u0e15\u0e32\u0e23\u0e32\u0e07",
110
+ "Remove Table": "\u0e40\u0e2d\u0e32\u0e15\u0e32\u0e23\u0e32\u0e07\u0e2d\u0e2d\u0e01",
111
+ "Table Style": "\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e15\u0e32\u0e23\u0e32\u0e07",
112
+ "Horizontal Align": "\u0e43\u0e19\u0e41\u0e19\u0e27\u0e19\u0e2d\u0e19",
110
113
  "Row": "\u0e41\u0e16\u0e27",
111
114
  "Insert row above": "\u0e41\u0e17\u0e23\u0e01\u0e41\u0e16\u0e27\u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19",
112
115
  "Insert row below": "\u0e41\u0e17\u0e23\u0e01\u0e41\u0e16\u0e27\u0e14\u0e49\u0e32\u0e19\u0e25\u0e48\u0e32\u0e07",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -106,7 +106,10 @@ $.FE.LANGUAGE['tr'] = {
106
106
 
107
107
  // Tables
108
108
  "Insert Table": "Tablo ekle",
109
- "Header": "\u00dcstbilgi",
109
+ "Table Header": "Tablo \u00fcstbilgisi",
110
+ "Remove Table": "Tablo kald\u0131rma",
111
+ "Table Style": "Tablo stili",
112
+ "Horizontal Align": "Yatay hizalama",
110
113
  "Row": "Sat\u0131r",
111
114
  "Insert row above": "\u00d6ncesine yeni sat\u0131r ekle",
112
115
  "Insert row below": "Sonras\u0131na yeni sat\u0131r ekle",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -106,7 +106,10 @@ $.FE.LANGUAGE['ua'] = {
106
106
 
107
107
  // Tables
108
108
  "Insert Table": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044e",
109
- "Header": "\u0422\u0435\u043c\u0430",
109
+ "Table Header": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0442\u0430\u0431\u043b\u0438\u0446\u0456",
110
+ "Remove Table": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0456",
111
+ "Table Style": "\u0421\u0442\u0438\u043b\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0456",
112
+ "Horizontal Align": "\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0435 \u0432\u0438\u0440\u0456\u0432\u043d\u044e\u0432\u0430\u043d\u043d\u044f",
110
113
  "Row": "\u0420\u044f\u0434\u043e\u043a",
111
114
  "Insert row above": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439 \u0440\u044f\u0434\u043e\u043a \u0437\u0432\u0435\u0440\u0445\u0443",
112
115
  "Insert row below": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439 \u0440\u044f\u0434\u043e\u043a \u0437\u043d\u0438\u0437\u0443",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -106,7 +106,10 @@ $.FE.LANGUAGE['zh_cn'] = {
106
106
 
107
107
  // Tables
108
108
  "Insert Table": "\u63d2\u5165\u8868\u683c",
109
- "Header": "\u5934",
109
+ "Table Header": "\u8868\u5934",
110
+ "Remove Table": "\u5220\u9664\u8868",
111
+ "Table Style": "\u8868\u683c\u6837\u5f0f",
112
+ "Horizontal Align": "\u6c34\u5e73\u5bf9\u9f50\u65b9\u5f0f",
110
113
  "Row": "\u884c",
111
114
  "Insert row above": "\u5728\u4e0a\u65b9\u63d2\u5165",
112
115
  "Insert row below": "\u5728\u4e0b\u65b9\u63d2\u5165",
@@ -120,7 +123,7 @@ $.FE.LANGUAGE['zh_cn'] = {
120
123
  "Horizontal split": "\u6c34\u5e73\u5206\u5272",
121
124
  "Vertical split": "\u5782\u76f4\u5206\u5272",
122
125
  "Cell Background": "\u5355\u5143\u683c\u80cc\u666f",
123
- "Vertical Align": "\u5782\u76f4\u5bf9\u9f50",
126
+ "Vertical Align": "\u5782\u76f4\u5bf9\u9f50\u65b9\u5f0f",
124
127
  "Top": "\u6700\u4f73",
125
128
  "Middle": "\u4e2d\u95f4",
126
129
  "Bottom": "\u5e95\u90e8",
@@ -219,9 +222,9 @@ $.FE.LANGUAGE['zh_cn'] = {
219
222
  "Code View": "\u4ee3\u7801\u89c6\u56fe",
220
223
 
221
224
  // Quote
222
- "Quote": "\u62a5\u4ef7",
223
- "Increase": "\u589e\u52a0",
224
- "Decrease": "\u51cf\u5c11",
225
+ "Quote": "\u5f15\u7528",
226
+ "Increase": "\u589e\u52a0\u5f15\u7528",
227
+ "Decrease": "\u5220\u9664\u5f15\u7528",
225
228
 
226
229
  // Quick Insert
227
230
  "Quick Insert": "\u5feb\u63d2"
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -106,7 +106,10 @@ $.FE.LANGUAGE['zh_tw'] = {
106
106
 
107
107
  // Tables
108
108
  "Insert Table": "\u63d2\u5165\u8868\u683c",
109
- "Header": "\u6a19\u984c",
109
+ "Table Header": "\u8868\u982d",
110
+ "Remove Table": "\u522a\u9664\u8868",
111
+ "Table Style": "\u8868\u6a23\u5f0f",
112
+ "Horizontal Align": "\u6c34\u6e96\u5c0d\u9f4a\u65b9\u5f0f",
110
113
  "Row": "\u884c",
111
114
  "Insert row above": "\u5411\u4e0a\u63d2\u5165\u4e00\u884c",
112
115
  "Insert row below": "\u5411\u4e0b\u63d2\u5165\u4e00\u884c",
@@ -120,7 +123,7 @@ $.FE.LANGUAGE['zh_tw'] = {
120
123
  "Horizontal split": "\u6c34\u5e73\u5206\u5272",
121
124
  "Vertical split": "\u5782\u76f4\u5206\u5272",
122
125
  "Cell Background": "\u5132\u5b58\u683c\u80cc\u666f",
123
- "Vertical Align": "\u5782\u76f4\u5c0d\u9f4a",
126
+ "Vertical Align": "\u5782\u76f4\u5c0d\u9f4a\u65b9\u5f0f",
124
127
  "Top": "\u4e0a",
125
128
  "Middle": "\u4e2d",
126
129
  "Bottom": "\u4e0b",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor)
2
+ * froala_editor v2.2.4 (https://www.froala.com/wysiwyg-editor)
3
3
  * License https://froala.com/wysiwyg-editor/terms/
4
4
  * Copyright 2014-2016 Froala Labs
5
5
  */
6
6
 
7
- !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c),c}:a(jQuery)}(function(a){"use strict";a.extend(a.FE.POPUP_TEMPLATES,{"file.insert":"[_BUTTONS_][_UPLOAD_LAYER_][_PROGRESS_BAR_]"}),a.extend(a.FE.DEFAULTS,{fileUploadURL:"http://i.froala.com/upload",fileUploadParam:"file",fileUploadParams:{},fileUploadToS3:!1,fileUploadMethod:"POST",fileMaxSize:10485760,fileAllowedTypes:["*"],fileInsertButtons:["fileBack","|"],fileUseSelectedText:!1}),a.FE.PLUGINS.file=function(b){function c(){var a=b.$tb.find('.fr-command[data-cmd="insertFile"]'),c=b.popups.get("file.insert");if(c||(c=r()),e(),!c.hasClass("fr-active")){b.popups.refresh("file.insert"),b.popups.setContainer("file.insert",b.$tb);var d=a.offset().left+a.outerWidth()/2,f=a.offset().top+(b.opts.toolbarBottom?0:a.outerHeight());b.popups.show("file.insert",d,f,a.outerHeight())}}function d(){var a=b.popups.get("file.insert");a&&(a.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),a.find(".fr-file-progress-bar-layer").addClass("fr-active"),a.find(".fr-buttons").hide(),f("Uploading",0))}function e(a){var c=b.popups.get("file.insert");c&&(c.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),c.find(".fr-file-progress-bar-layer").removeClass("fr-active"),c.find(".fr-buttons").show(),a&&b.popups.show("file.insert",null,null))}function f(a,c){var d=b.popups.get("file.insert");if(d){var e=d.find(".fr-file-progress-bar-layer");e.find("h3").text(a+(c?" "+c+"%":"")),e.removeClass("fr-error"),c?(e.find("div").removeClass("fr-indeterminate"),e.find("div > span").css("width",c+"%")):e.find("div").addClass("fr-indeterminate")}}function g(a){var c=b.popups.get("file.insert"),d=c.find(".fr-file-progress-bar-layer");d.addClass("fr-error"),d.find("h3").text(a)}function h(a,c,d){b.edit.on(),b.events.focus(!0),b.selection.restore(),b.html.insert('<a href="'+a+'" id="fr-inserted-file" class="fr-file">'+(c||b.selection.text())+"</a>");var e=b.$el.find("#fr-inserted-file");e.removeAttr("id"),b.popups.hide("file.insert"),b.undo.saveStep(),b.events.trigger("file.inserted",[e,d])}function i(c){try{if(b.events.trigger("file.uploaded",[c],!0)===!1)return b.edit.on(),!1;var d=a.parseJSON(c);return d.link?d:(n(y,c),!1)}catch(e){return n(A,c),!1}}function j(c){try{var d=a(c).find("Location").text(),e=a(c).find("Key").text();return b.events.trigger("file.uploadedToS3",[d,e,c],!0)===!1?(b.edit.on(),!1):d}catch(f){return n(A,c),!1}}function k(a){var c=this.status,d=this.response,e=this.responseXML,f=this.responseText;try{if(b.opts.fileUploadToS3)if(201==c){var g=j(e);g&&h(g,a,d||e)}else n(A,d||e);else if(c>=200&&300>c){var k=i(f);k&&h(k.link,a,d||f)}else n(z,d||f)}catch(l){n(A,d||f)}}function l(){n(A,this.response||this.responseText||this.responseXML)}function m(a){if(a.lengthComputable){var b=a.loaded/a.total*100|0;f("Uploading",b)}}function n(a,c){b.edit.on(),g(b.language.translate("Something went wrong. Please try again.")),b.events.trigger("file.error",[{code:a,message:E[a]},c])}function o(a){if(b.events.trigger("file.beforeUpload",[a])===!1)return!1;if("undefined"!=typeof a&&a.length>0){var c=a[0];if(c.size>b.opts.fileMaxSize)return n(B),!1;if(b.opts.fileAllowedTypes.indexOf("*")<0&&b.opts.fileAllowedTypes.indexOf(c.type.replace(/file\//g,""))<0)return n(C),!1;var e;if(b.drag_support.formdata&&(e=b.drag_support.formdata?new FormData:null),e){var f;if(b.opts.fileUploadToS3!==!1){e.append("key",b.opts.fileUploadToS3.keyStart+(new Date).getTime()+"-"+(c.name||"untitled")),e.append("success_action_status","201"),e.append("X-Requested-With","xhr"),e.append("Content-Type",c.type);for(f in b.opts.fileUploadToS3.params)b.opts.fileUploadToS3.params.hasOwnProperty(f)&&e.append(f,b.opts.fileUploadToS3.params[f])}for(f in b.opts.fileUploadParams)b.opts.fileUploadParams.hasOwnProperty(f)&&e.append(f,b.opts.fileUploadParams[f]);e.append(b.opts.fileUploadParam,c);var g=b.opts.fileUploadURL;b.opts.fileUploadToS3&&(g="https://"+b.opts.fileUploadToS3.region+".amazonaws.com/"+b.opts.fileUploadToS3.bucket);var h=b.core.getXHR(g,b.opts.fileUploadMethod);h.onload=function(){k.call(h,[b.opts.fileUseSelectedText?null:c.name])},h.onerror=l,h.upload.onprogress=m,d(),b.edit.off(),h.send(e)}}}function p(c){b.events.$on(c,"dragover dragenter",".fr-file-upload-layer",function(){return a(this).addClass("fr-drop"),!1},!0),b.events.$on(c,"dragleave dragend",".fr-file-upload-layer",function(){return a(this).removeClass("fr-drop"),!1},!0),b.events.$on(c,"drop",".fr-file-upload-layer",function(b){b.preventDefault(),b.stopPropagation(),a(this).removeClass("fr-drop");var c=b.originalEvent.dataTransfer;c&&c.files&&o(c.files)},!0),b.events.$on(c,"change",'.fr-file-upload-layer input[type="file"]',function(){this.files&&o(this.files),a(this).val("")},!0)}function q(){e()}function r(a){if(a)return b.popups.onHide("file.insert",q),!0;var c="";c='<div class="fr-buttons">'+b.button.buildList(b.opts.fileInsertButtons)+"</div>";var d="";d='<div class="fr-file-upload-layer fr-layer fr-active" id="fr-file-upload-layer-'+b.id+'"><strong>'+b.language.translate("Drop file")+"</strong><br>("+b.language.translate("or click")+')<div class="fr-form"><input type="file" name="'+b.opts.fileUploadParam+'" accept="/*" tabIndex="-1"></div></div>';var e='<div class="fr-file-progress-bar-layer fr-layer"><h3 class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command" data-cmd="fileDismissError" tabIndex="2">OK</button></div></div>',f={buttons:c,upload_layer:d,progress_bar:e},g=b.popups.create("file.insert",f);return p(g),g}function s(c){return a(c).hasClass("fr-file")?b.events.trigger("file.unlink",[c]):void 0}function t(c){var e=c.originalEvent.dataTransfer;if(e&&e.files&&e.files.length){var f=e.files[0];if(f&&"undefined"!=typeof f.type&&f.type.indexOf("image")<0&&(b.opts.fileAllowedTypes.indexOf(f.type)>=0||b.opts.fileAllowedTypes.indexOf("*")>=0)){b.markers.remove(),b.markers.insertAtPoint(c.originalEvent),b.$el.find(".fr-marker").replaceWith(a.FE.MARKERS),b.popups.hideAll();var g=b.popups.get("file.insert");return g||(g=r()),b.popups.setContainer("file.insert",a(b.opts.scrollableContainer)),b.popups.show("file.insert",c.originalEvent.pageX,c.originalEvent.pageY),d(),o(e.files),c.preventDefault(),c.stopPropagation(),!1}}}function u(){b.events.on("drop",t)}function v(){b.events.disableBlur(),b.selection.restore(),b.events.enableBlur(),b.popups.hide("file.insert"),b.toolbar.showInline()}function w(){u(),b.events.on("link.beforeRemove",s),r(!0)}var x=1,y=2,z=3,A=4,B=5,C=6,D=7,E={};return E[x]="File cannot be loaded from the passed link.",E[y]="No link in upload response.",E[z]="Error during file upload.",E[A]="Parsing response failed.",E[B]="File is too large.",E[C]="File file type is invalid.",E[D]="Files can be uploaded only to same domain in IE 8 and IE 9.",{_init:w,showInsertPopup:c,upload:o,insert:h,back:v,hideProgressBar:e}},a.FE.DefineIcon("insertFile",{NAME:"file-o"}),a.FE.RegisterCommand("insertFile",{title:"Upload File",undo:!1,focus:!0,refershAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("file.insert")?(this.$el.find(".fr-marker")&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("file.insert")):this.file.showInsertPopup()},plugin:"file"}),a.FE.DefineIcon("fileBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("fileBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.file.back()},refresh:function(a){this.opts.toolbarInline?(a.removeClass("fr-hidden"),a.next(".fr-separator").removeClass("fr-hidden")):(a.addClass("fr-hidden"),a.next(".fr-separator").addClass("fr-hidden"))}}),a.FE.RegisterCommand("fileDismissError",{title:"OK",callback:function(){this.file.hideProgressBar(!0)}})});
7
+ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c),c}:a(jQuery)}(function(a){"use strict";a.extend(a.FE.POPUP_TEMPLATES,{"file.insert":"[_BUTTONS_][_UPLOAD_LAYER_][_PROGRESS_BAR_]"}),a.extend(a.FE.DEFAULTS,{fileUploadURL:"http://i.froala.com/upload",fileUploadParam:"file",fileUploadParams:{},fileUploadToS3:!1,fileUploadMethod:"POST",fileMaxSize:10485760,fileAllowedTypes:["*"],fileInsertButtons:["fileBack","|"],fileUseSelectedText:!1}),a.FE.PLUGINS.file=function(b){function c(){var a=b.$tb.find('.fr-command[data-cmd="insertFile"]'),c=b.popups.get("file.insert");if(c||(c=s()),e(),!c.hasClass("fr-active")){b.popups.refresh("file.insert"),b.popups.setContainer("file.insert",b.$tb);var d=a.offset().left+a.outerWidth()/2,f=a.offset().top+(b.opts.toolbarBottom?0:a.outerHeight());b.popups.show("file.insert",d,f,a.outerHeight())}}function d(){var a=b.popups.get("file.insert");a&&(a.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),a.find(".fr-file-progress-bar-layer").addClass("fr-active"),a.find(".fr-buttons").hide(),f("Uploading",0))}function e(a){var c=b.popups.get("file.insert");c&&(c.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),c.find(".fr-file-progress-bar-layer").removeClass("fr-active"),c.find(".fr-buttons").show(),a&&b.popups.show("file.insert",null,null))}function f(a,c){var d=b.popups.get("file.insert");if(d){var e=d.find(".fr-file-progress-bar-layer");e.find("h3").text(a+(c?" "+c+"%":"")),e.removeClass("fr-error"),c?(e.find("div").removeClass("fr-indeterminate"),e.find("div > span").css("width",c+"%")):e.find("div").addClass("fr-indeterminate")}}function g(a){var c=b.popups.get("file.insert"),d=c.find(".fr-file-progress-bar-layer");d.addClass("fr-error"),d.find("h3").text(a)}function h(a,c,d){b.edit.on(),b.events.focus(!0),b.selection.restore(),b.html.insert('<a href="'+a+'" id="fr-inserted-file" class="fr-file">'+(c||b.selection.text())+"</a>");var e=b.$el.find("#fr-inserted-file");e.removeAttr("id"),b.popups.hide("file.insert"),b.undo.saveStep(),b.events.trigger("file.inserted",[e,d])}function i(c){try{if(b.events.trigger("file.uploaded",[c],!0)===!1)return b.edit.on(),!1;var d=a.parseJSON(c);return d.link?d:(n(z,c),!1)}catch(e){return n(B,c),!1}}function j(c){try{var d=a(c).find("Location").text(),e=a(c).find("Key").text();return b.events.trigger("file.uploadedToS3",[d,e,c],!0)===!1?(b.edit.on(),!1):d}catch(f){return n(B,c),!1}}function k(a){var c=this.status,d=this.response,e=this.responseXML,f=this.responseText;try{if(b.opts.fileUploadToS3)if(201==c){var g=j(e);g&&h(g,a,d||e)}else n(B,d||e);else if(c>=200&&300>c){var k=i(f);k&&h(k.link,a,d||f)}else n(A,d||f)}catch(l){n(B,d||f)}}function l(){n(B,this.response||this.responseText||this.responseXML)}function m(a){if(a.lengthComputable){var b=a.loaded/a.total*100|0;f("Uploading",b)}}function n(a,c){b.edit.on(),g(b.language.translate("Something went wrong. Please try again.")),b.events.trigger("file.error",[{code:a,message:F[a]},c])}function o(){b.edit.on(),e(!0)}function p(a){if(b.events.trigger("file.beforeUpload",[a])===!1)return!1;if("undefined"!=typeof a&&a.length>0){var c=a[0];if(c.size>b.opts.fileMaxSize)return n(C),!1;if(b.opts.fileAllowedTypes.indexOf("*")<0&&b.opts.fileAllowedTypes.indexOf(c.type.replace(/file\//g,""))<0)return n(D),!1;var e;if(b.drag_support.formdata&&(e=b.drag_support.formdata?new FormData:null),e){var f;if(b.opts.fileUploadToS3!==!1){e.append("key",b.opts.fileUploadToS3.keyStart+(new Date).getTime()+"-"+(c.name||"untitled")),e.append("success_action_status","201"),e.append("X-Requested-With","xhr"),e.append("Content-Type",c.type);for(f in b.opts.fileUploadToS3.params)b.opts.fileUploadToS3.params.hasOwnProperty(f)&&e.append(f,b.opts.fileUploadToS3.params[f])}for(f in b.opts.fileUploadParams)b.opts.fileUploadParams.hasOwnProperty(f)&&e.append(f,b.opts.fileUploadParams[f]);e.append(b.opts.fileUploadParam,c);var g=b.opts.fileUploadURL;b.opts.fileUploadToS3&&(g="https://"+b.opts.fileUploadToS3.region+".amazonaws.com/"+b.opts.fileUploadToS3.bucket);var h=b.core.getXHR(g,b.opts.fileUploadMethod);h.onload=function(){k.call(h,[b.opts.fileUseSelectedText?null:c.name])},h.onerror=l,h.upload.onprogress=m,h.onabort=o,d(),b.edit.off();var i=b.popups.get("file.insert");i&&i.off("abortUpload").on("abortUpload",function(){4!=h.readyState&&h.abort()}),h.send(e)}}}function q(c){b.events.$on(c,"dragover dragenter",".fr-file-upload-layer",function(){return a(this).addClass("fr-drop"),!1},!0),b.events.$on(c,"dragleave dragend",".fr-file-upload-layer",function(){return a(this).removeClass("fr-drop"),!1},!0),b.events.$on(c,"drop",".fr-file-upload-layer",function(d){d.preventDefault(),d.stopPropagation(),a(this).removeClass("fr-drop");var e=d.originalEvent.dataTransfer;if(e&&e.files){var f=c.data("instance")||b;f.file.upload(e.files)}},!0),b.events.$on(c,"change",'.fr-file-upload-layer input[type="file"]',function(){if(this.files){var d=c.data("instance")||b;d.file.upload(this.files)}a(this).val("")},!0)}function r(){e()}function s(a){if(a)return b.popups.onHide("file.insert",r),!0;var c="";c='<div class="fr-buttons">'+b.button.buildList(b.opts.fileInsertButtons)+"</div>";var d="";d='<div class="fr-file-upload-layer fr-layer fr-active" id="fr-file-upload-layer-'+b.id+'"><strong>'+b.language.translate("Drop file")+"</strong><br>("+b.language.translate("or click")+')<div class="fr-form"><input type="file" name="'+b.opts.fileUploadParam+'" accept="/*" tabIndex="-1"></div></div>';var e='<div class="fr-file-progress-bar-layer fr-layer"><h3 class="fr-message">Uploading</h3><div class="fr-loader"><span class="fr-progress"></span></div><div class="fr-action-buttons"><button type="button" class="fr-command" data-cmd="fileDismissError" tabIndex="2">OK</button></div></div>',f={buttons:c,upload_layer:d,progress_bar:e},g=b.popups.create("file.insert",f);return q(g),g}function t(c){return a(c).hasClass("fr-file")?b.events.trigger("file.unlink",[c]):void 0}function u(c){var e=c.originalEvent.dataTransfer;if(e&&e.files&&e.files.length){var f=e.files[0];if(f&&"undefined"!=typeof f.type&&f.type.indexOf("image")<0&&(b.opts.fileAllowedTypes.indexOf(f.type)>=0||b.opts.fileAllowedTypes.indexOf("*")>=0)){b.markers.remove(),b.markers.insertAtPoint(c.originalEvent),b.$el.find(".fr-marker").replaceWith(a.FE.MARKERS),b.popups.hideAll();var g=b.popups.get("file.insert");return g||(g=s()),b.popups.setContainer("file.insert",a(b.opts.scrollableContainer)),b.popups.show("file.insert",c.originalEvent.pageX,c.originalEvent.pageY),d(),p(e.files),c.preventDefault(),c.stopPropagation(),!1}}}function v(){b.events.on("drop",u),b.events.$on(b.$win,"keydown",function(c){var d=c.which,e=b.popups.get("file.insert");e&&d==a.FE.KEYCODE.ESC&&e.trigger("abortUpload")})}function w(){b.events.disableBlur(),b.selection.restore(),b.events.enableBlur(),b.popups.hide("file.insert"),b.toolbar.showInline()}function x(){v(),b.events.on("link.beforeRemove",t),s(!0)}var y=1,z=2,A=3,B=4,C=5,D=6,E=7,F={};return F[y]="File cannot be loaded from the passed link.",F[z]="No link in upload response.",F[A]="Error during file upload.",F[B]="Parsing response failed.",F[C]="File is too large.",F[D]="File file type is invalid.",F[E]="Files can be uploaded only to same domain in IE 8 and IE 9.",{_init:x,showInsertPopup:c,upload:p,insert:h,back:w,hideProgressBar:e}},a.FE.DefineIcon("insertFile",{NAME:"file-o"}),a.FE.RegisterCommand("insertFile",{title:"Upload File",undo:!1,focus:!0,refershAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("file.insert")?(this.$el.find(".fr-marker")&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("file.insert")):this.file.showInsertPopup()},plugin:"file"}),a.FE.DefineIcon("fileBack",{NAME:"arrow-left"}),a.FE.RegisterCommand("fileBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.file.back()},refresh:function(a){this.opts.toolbarInline?(a.removeClass("fr-hidden"),a.next(".fr-separator").removeClass("fr-hidden")):(a.addClass("fr-hidden"),a.next(".fr-separator").addClass("fr-hidden"))}}),a.FE.RegisterCommand("fileDismissError",{title:"OK",callback:function(){this.file.hideProgressBar(!0)}})});