activeadmin_trumbowyg 0.2.12 → 1.0.0

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 +21 -2
  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 +26 -17
  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 +14 -148
  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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '02858e480c9449f39a38ebfe6f6863d1d1f38666c8e5fb92c62e0234e0f7817b'
4
- data.tar.gz: 1eb0da72dc6f7a59c48255c667870f9f62f2549551f44b6586ca8e5f7669c070
3
+ metadata.gz: 3884e0cac926fb57034de8cc784d9fb02c91fd2de3c3ec7d3551d58634ba24be
4
+ data.tar.gz: b1806bcf50fd2f7ca610c0c31e2087ad113c5c411df381c53987844e78da841f
5
5
  SHA512:
6
- metadata.gz: a8521d44bc2d2ccb71163fbe6d5c3e5fb62cd78297b740ea1423059e455f63bfd68b23f687763295541cce745fdaed1f55c822136e1c5a152ca0d020bf22854b
7
- data.tar.gz: 698940310f05fed6fa71488f6d0589ddb71426896f5a68b1f04d3d76013d0ee08fc832b7790d70ea3c75392e21d43aa49f47e6435631bccbe74fd209c6f15cd4
6
+ metadata.gz: afe0e374b2ecd3b3a5f2c182ee10248550a06c3e54a36a19aefad256ff4f24c6258a3f528e7cae833a82ec93dba08121d072a9851d2e82800d06e5142306d1a3
7
+ data.tar.gz: 612dada9f4af257f035145ff842fac76600fafceeff8783d0ebecce049d3d4fb8449019eab8575d803860caac0cee3843e447c199d83fdd53aa620bb08e71f9a
data/README.md CHANGED
@@ -1,4 +1,9 @@
1
- # Active Admin Trumbowyg [![Gem Version](https://badge.fury.io/rb/activeadmin_trumbowyg.svg)](https://badge.fury.io/rb/activeadmin_trumbowyg) [![CircleCI](https://circleci.com/gh/blocknotes/activeadmin_trumbowyg.svg?style=svg)](https://circleci.com/gh/blocknotes/activeadmin_trumbowyg)
1
+ # Active Admin Trumbowyg
2
+ [![gem version](https://badge.fury.io/rb/activeadmin_trumbowyg.svg)](https://badge.fury.io/rb/activeadmin_trumbowyg)
3
+ [![gem downloads](https://badgen.net/rubygems/dt/activeadmin_trumbowyg)](https://rubygems.org/gems/activeadmin_trumbowyg)
4
+ [![linters](https://github.com/blocknotes/activeadmin_trumbowyg/actions/workflows/linters.yml/badge.svg)](https://github.com/blocknotes/activeadmin_trumbowyg/actions/workflows/linters.yml)
5
+ [![specs Rails 6.1](https://github.com/blocknotes/activeadmin_trumbowyg/actions/workflows/specs_rails61.yml/badge.svg)](https://github.com/blocknotes/activeadmin_trumbowyg/actions/workflows/specs_rails61.yml)
6
+ [![specs Rails 7.0](https://github.com/blocknotes/activeadmin_trumbowyg/actions/workflows/specs_rails70.yml/badge.svg)](https://github.com/blocknotes/activeadmin_trumbowyg/actions/workflows/specs_rails70.yml)
2
7
 
3
8
  An *Active Admin* plugin to use [Trumbowyg](https://alex-d.github.io/Trumbowyg/) as WYSIWYG editor in form inputs.
4
9
 
@@ -7,9 +12,13 @@ Features:
7
12
  - customizable options via data attributes in the form input;
8
13
  - plugins included, like images upload.
9
14
 
10
- ![screenshot](screenshot.png)
15
+ ![screenshot](extra/screenshot.png)
16
+
17
+ Please :star: if you like it.
11
18
 
12
19
  ## Install
20
+
21
+ - Add a SASS/SCSS gem to your Gemfile (ex. `gem 'sassc'`)
13
22
  - After installing Active Admin, add to your Gemfile: `gem 'activeadmin_trumbowyg'` (and execute *bundle*)
14
23
  - Add at the end of your Active Admin styles (_app/assets/stylesheets/active_admin.scss_):
15
24
  ```css
@@ -27,6 +36,7 @@ Features:
27
36
  > **UPDATE FROM VERSION < 2.0**: please change the Trumbowyg line in your _app/assets/stylesheets/active_admin.scss_ to: `@import 'activeadmin/trumbowyg/trumbowyg';`
28
37
 
29
38
  ## Usage
39
+
30
40
  Form config (example model Article):
31
41
 
32
42
  ```ruby
@@ -41,6 +51,7 @@ end
41
51
  ```
42
52
 
43
53
  ## Notes
54
+
44
55
  - **data-options** permits to set *Trumbowyg editor* options directly; some examples below. For reference see [options list](https://alex-d.github.io/Trumbowyg/documentation/).
45
56
  - Why 2 separated scripts/style files? To allow to include different versions of *Trumbowyg editor* if needed.
46
57
  - To use this plugins with *Active Admin 1.x* please use the version [0.1.8](https://github.com/blocknotes/activeadmin_trumbowyg/releases/tag/v0.1.8)
@@ -54,6 +65,7 @@ f.input :description, as: :trumbowyg, input_html: { data: { options: { btns: [['
54
65
  ```
55
66
 
56
67
  ### Trumbowyg upload plugin
68
+
57
69
  Plugin reference [here](https://alex-d.github.io/Trumbowyg/documentation/plugins/#plugin-upload).
58
70
 
59
71
  Add to *active_admin.js* (after *trumbowyg* require):
@@ -82,14 +94,21 @@ end
82
94
 
83
95
  For the relevant files of this upload example see [here](examples/upload_plugin_using_activestorage/). Consider that this is just a basic example: images are uploaded as soon as they are attached to the editor (regardless of the form submit), it shows the editor only for an existing record (because of the *upload_admin_post_path*) and it doesn't provide a way to remove images (just deleting them from the editor will not destroy them, you'll need to implement a purge logic for that).
84
96
 
97
+ ## Changelog
98
+
99
+ The changelog is available [here](CHANGELOG.md).
100
+
85
101
  ## Do you like it? Star it!
102
+
86
103
  If you use this component just star it. A developer is more motivated to improve a project when there is some interest. My other [Active Admin components](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source).
87
104
 
88
105
  Or consider offering me a coffee, it's a small thing but it is greatly appreciated: [about me](https://www.blocknot.es/about-me).
89
106
 
90
107
  ## Contributors
108
+
91
109
  - [Mattia Roccoberton](http://blocknot.es): author
92
110
  - The good guys that opened issues and pull requests from time to time
93
111
 
94
112
  ## License
113
+
95
114
  The gem is available as open-source under the terms of the [MIT](LICENSE.txt).
@@ -0,0 +1,62 @@
1
+ /* ===========================================================
2
+ * bn.js
3
+ * Bangla translation for Trumbowyg
4
+ * http://alex-d.github.com/Trumbowyg
5
+ * ===========================================================
6
+ * Author : Ahammad Naim
7
+ * Website : https://github.com/AhammadNaim
8
+ */
9
+
10
+ jQuery.trumbowyg.langs.bn = {
11
+ viewHTML: 'HTML দেখান',
12
+
13
+ undo: 'পূর্বাবস্থায় ফিরুন',
14
+ redo: 'পুনরায় করুন',
15
+
16
+ formatting: 'বিন্যাস',
17
+ p: 'অনুচ্ছেদ',
18
+ blockquote: 'উদ্ধৃতি',
19
+ code: 'কোড',
20
+ header: 'শিরোনাম',
21
+
22
+ bold: 'বোল্ড',
23
+ italic: 'ইটালিক',
24
+ strikethrough: 'স্ট্রাইকথ্রু',
25
+ underline: 'আন্ডারলাইন',
26
+
27
+ strong: 'বোল্ড',
28
+ em: 'ইটালিক',
29
+ del: 'স্ট্রাইকথ্রু',
30
+
31
+ superscript: 'সুপারস্ক্রিপ্ট',
32
+ subscript: 'সাবস্ক্রিপ্ট',
33
+
34
+ unorderedList: 'অসংখ্যায়িত তালিকা',
35
+ orderedList: 'সাজানো তালিকা',
36
+
37
+ insertImage: 'ছবি',
38
+ link: 'লিংক',
39
+ createLink: 'লিংক তৈরি করুন',
40
+ unlink: 'লিংক মুছুন',
41
+
42
+ justifyLeft: 'বামে জাস্টিফাইড',
43
+ justifyCenter: 'কেন্দ্রীভূত',
44
+ justifyRight: 'ডানে জাস্টিফাইড',
45
+ justifyFull: 'জাস্টিফাইড',
46
+
47
+ horizontalRule: 'আনুভূমিক দাগ',
48
+ removeformat: 'বিন্যাস অপসারণ করুন',
49
+
50
+ fullscreen: 'সম্পূর্ণ পর্দায় দেখুন',
51
+
52
+ close: 'বন্ধ',
53
+
54
+ submit: 'প্রেরণ',
55
+ reset: 'বাতিল',
56
+
57
+ required: 'আবশ্যক',
58
+ description: 'বর্ননা',
59
+ title: 'শিরোনাম',
60
+ text: 'পাঠ্য',
61
+ target: 'লক্ষ্য'
62
+ };
@@ -0,0 +1,9 @@
1
+ /* ===========================================================
2
+ * bn.js
3
+ * Bangla translation for Trumbowyg
4
+ * http://alex-d.github.com/Trumbowyg
5
+ * ===========================================================
6
+ * Author : Ahammad Naim
7
+ * Website : https://github.com/AhammadNaim
8
+ */
9
+ jQuery.trumbowyg.langs.bn={viewHTML:"HTML দেখান",undo:"পূর্বাবস্থায় ফিরুন",redo:"পুনরায় করুন",formatting:"বিন্যাস",p:"অনুচ্ছেদ",blockquote:"উদ্ধৃতি",code:"কোড",header:"শিরোনাম",bold:"বোল্ড",italic:"ইটালিক",strikethrough:"স্ট্রাইকথ্রু",underline:"আন্ডারলাইন",strong:"বোল্ড",em:"ইটালিক",del:"স্ট্রাইকথ্রু",superscript:"সুপারস্ক্রিপ্ট",subscript:"সাবস্ক্রিপ্ট",unorderedList:"অসংখ্যায়িত তালিকা",orderedList:"সাজানো তালিকা",insertImage:"ছবি",link:"লিংক",createLink:"লিংক তৈরি করুন",unlink:"লিংক মুছুন",justifyLeft:"বামে জাস্টিফাইড",justifyCenter:"কেন্দ্রীভূত",justifyRight:"ডানে জাস্টিফাইড",justifyFull:"জাস্টিফাইড",horizontalRule:"আনুভূমিক দাগ",removeformat:"বিন্যাস অপসারণ করুন",fullscreen:"সম্পূর্ণ পর্দায় দেখুন",close:"বন্ধ",submit:"প্রেরণ",reset:"বাতিল",required:"আবশ্যক",description:"বর্ননা",title:"শিরোনাম",text:"পাঠ্য",target:"লক্ষ্য"};
@@ -0,0 +1,65 @@
1
+ /* ===========================================================
2
+ * et.js
3
+ * Estonian translation for Trumbowyg
4
+ * http://alex-d.github.com/Trumbowyg
5
+ * ===========================================================
6
+ * Author : Mart Leib
7
+ * Web: https://voogle.ee
8
+ */
9
+
10
+ jQuery.trumbowyg.langs.et = {
11
+ viewHTML: 'HTML vaade',
12
+
13
+ undo: 'Võta tagasi',
14
+ redo: 'Tee uuesti',
15
+
16
+ formatting: 'Vorming',
17
+ p: 'Lõik',
18
+ blockquote: 'Plokktsitaat',
19
+ code: 'Kood',
20
+ header: 'Pealkiri',
21
+
22
+ bold: 'Paks',
23
+ italic: 'Kaldkiri',
24
+ strikethrough: 'Läbikriipsutatud',
25
+ underline: 'Allakriipsutatud',
26
+
27
+ strong: 'Tugev rõhutus',
28
+ em: 'Rõhutus',
29
+ del: 'Eemaldatud',
30
+
31
+ superscript: 'Ülemine indeks',
32
+ subscript: 'Alumine indeks',
33
+
34
+ unorderedList: 'Järjestamata loend',
35
+ orderedList: 'Järjestatud loend',
36
+
37
+ insertImage: 'Lisa pilt',
38
+ insertVideo: 'Lisa video',
39
+ link: 'Link',
40
+ createLink: 'Lisa link',
41
+ unlink: 'Eemalda link',
42
+
43
+ justifyLeft: 'Joonda vasakule',
44
+ justifyCenter: 'Joonda keskele',
45
+ justifyRight: 'Joonda paremale',
46
+ justifyFull: 'Joonda rööpselt',
47
+
48
+ horizontalRule: 'Horisontaaljoon',
49
+ removeformat: 'Eemalda vorming',
50
+
51
+ fullscreen: 'Täisekraan',
52
+
53
+ close: 'Sulge',
54
+
55
+ submit: 'Salvesta',
56
+ reset: 'Tühista',
57
+
58
+ required: 'Kohustuslik',
59
+ description: 'Kirjeldus',
60
+ title: 'Pealkiri',
61
+ text: 'Tekst',
62
+ target: 'Sihtmärk',
63
+ width: 'Laius'
64
+
65
+ };
@@ -0,0 +1,9 @@
1
+ /* ===========================================================
2
+ * et.js
3
+ * Estonian translation for Trumbowyg
4
+ * http://alex-d.github.com/Trumbowyg
5
+ * ===========================================================
6
+ * Author : Mart Leib
7
+ * Web: https://voogle.ee
8
+ */
9
+ jQuery.trumbowyg.langs.et={viewHTML:"HTML vaade",undo:"Võta tagasi",redo:"Tee uuesti",formatting:"Vorming",p:"Lõik",blockquote:"Plokktsitaat",code:"Kood",header:"Pealkiri",bold:"Paks",italic:"Kaldkiri",strikethrough:"Läbikriipsutatud",underline:"Allakriipsutatud",strong:"Tugev rõhutus",em:"Rõhutus",del:"Eemaldatud",superscript:"Ülemine indeks",subscript:"Alumine indeks",unorderedList:"Järjestamata loend",orderedList:"Järjestatud loend",insertImage:"Lisa pilt",insertVideo:"Lisa video",link:"Link",createLink:"Lisa link",unlink:"Eemalda link",justifyLeft:"Joonda vasakule",justifyCenter:"Joonda keskele",justifyRight:"Joonda paremale",justifyFull:"Joonda rööpselt",horizontalRule:"Horisontaaljoon",removeformat:"Eemalda vorming",fullscreen:"Täisekraan",close:"Sulge",submit:"Salvesta",reset:"Tühista",required:"Kohustuslik",description:"Kirjeldus",title:"Pealkiri",text:"Tekst",target:"Sihtmärk",width:"Laius"};
@@ -1,3 +1,11 @@
1
+ /* ===========================================================
2
+ * sl.js
3
+ * Slovenian translation for Trumbowyg
4
+ * http://alex-d.github.com/Trumbowyg
5
+ * ===========================================================
6
+ * Author: Matjaz Zavski (https://github.com/matjaz321)
7
+ */
8
+
1
9
  jQuery.trumbowyg.langs.sl = {
2
10
  viewHTML: 'Prikaži HTML',
3
11
 
@@ -33,7 +41,7 @@ jQuery.trumbowyg.langs.sl = {
33
41
 
34
42
  horizontalRule: 'Vstavite vodoravno črto',
35
43
  removeformat: 'Odstrani format',
36
-
44
+
37
45
  fullscreen: 'Celozaslonski način',
38
46
 
39
47
  close: 'Zapri',
@@ -1 +1,8 @@
1
+ /* ===========================================================
2
+ * sl.js
3
+ * Slovenian translation for Trumbowyg
4
+ * http://alex-d.github.com/Trumbowyg
5
+ * ===========================================================
6
+ * Author: Matjaz Zavski (https://github.com/matjaz321)
7
+ */
1
8
  jQuery.trumbowyg.langs.sl={viewHTML:"Prikaži HTML",formatting:"Formatiranje",p:"Odstavek",blockquote:"Citat",code:"Koda",header:"Glava",bold:"Krepko",italic:"Ležeče",strikethrough:"Prečrtano",underline:"Podčrtano",strong:"Odebljeno",em:"Poudarjeno",del:"Izbrisano",unorderedList:"Neoštevilčen seznam",orderedList:"Oštevilčen seznam",image:"Slika",insertImage:"Vzstavi sliko",insertVideo:"Vzstavi video",link:"Povezava",createLink:"Vzstavi povezavo",unlink:"Odstrani povezavo",justifyLeft:"Poravnava levo",justifyCenter:"Poravnaj na sredino",justifyRight:"Poravnava desno",justifyFull:"Obojestranska poravnava",horizontalRule:"Vstavite vodoravno črto",removeformat:"Odstrani format",fullscreen:"Celozaslonski način",close:"Zapri",submit:"Potrdi",reset:"Resetiraj",required:"Erforderlich",description:"Opis",title:"Naslov",text:"Besedilo"};
@@ -129,13 +129,13 @@
129
129
  plugins: {
130
130
  allowTagsFromPaste: {
131
131
  init: function (trumbowyg) {
132
- // Force disable remove format pasted
133
- trumbowyg.o.removeformatPasted = false;
134
-
135
132
  if (!trumbowyg.o.plugins.allowTagsFromPaste) {
136
133
  return;
137
134
  }
138
135
 
136
+ // Force disable remove format pasted
137
+ trumbowyg.o.removeformatPasted = false;
138
+
139
139
  var allowedTags = trumbowyg.o.plugins.allowTagsFromPaste.allowedTags || defaultOptions.allowedTags;
140
140
  var removableTags = trumbowyg.o.plugins.allowTagsFromPaste.removableTags || defaultOptions.removableTags;
141
141
 
@@ -1 +1 @@
1
- !function(e){"use strict";var a={allowedTags:[],removableTags:["a","abbr","address","b","bdi","bdo","blockquote","br","cite","code","del","dfn","details","em","h1","h2","h3","h4","h5","h6","hr","i","ins","kbd","mark","meter","pre","progress","q","rp","rt","ruby","s","samp","small","span","strong","sub","summary","sup","time","u","var","wbr","img","map","area","canvas","figcaption","figure","picture","audio","source","track","video","ul","ol","li","dl","dt","dd","table","caption","th","tr","td","thead","tbody","tfoot","col","colgroup","style","div","p","form","input","textarea","button","select","optgroup","option","label","fieldset","legend","datalist","keygen","output","iframe","link","nav","header","hgroup","footer","main","section","article","aside","dialog","script","noscript","embed","object","param"]};e.extend(!0,e.trumbowyg,{plugins:{allowTagsFromPaste:{init:function(t){if(t.o.removeformatPasted=!1,t.o.plugins.allowTagsFromPaste){var o=t.o.plugins.allowTagsFromPaste.allowedTags||a.allowedTags,r=t.o.plugins.allowTagsFromPaste.removableTags||a.removableTags;if(0!==o.length){var s=e(r).not(o).get();t.pasteHandlers.push(function(){setTimeout(function(){var a=t.$ed.html();e.each(s,function(e,t){a=a.replace(new RegExp("<\\/?"+t+"(\\s[^>]*)?>","gi"),"")}),t.$ed.html(a)},0)})}}}}}})}(jQuery);
1
+ !function(e){"use strict";var a={allowedTags:[],removableTags:["a","abbr","address","b","bdi","bdo","blockquote","br","cite","code","del","dfn","details","em","h1","h2","h3","h4","h5","h6","hr","i","ins","kbd","mark","meter","pre","progress","q","rp","rt","ruby","s","samp","small","span","strong","sub","summary","sup","time","u","var","wbr","img","map","area","canvas","figcaption","figure","picture","audio","source","track","video","ul","ol","li","dl","dt","dd","table","caption","th","tr","td","thead","tbody","tfoot","col","colgroup","style","div","p","form","input","textarea","button","select","optgroup","option","label","fieldset","legend","datalist","keygen","output","iframe","link","nav","header","hgroup","footer","main","section","article","aside","dialog","script","noscript","embed","object","param"]};e.extend(!0,e.trumbowyg,{plugins:{allowTagsFromPaste:{init:function(t){if(t.o.plugins.allowTagsFromPaste){t.o.removeformatPasted=!1;var o=t.o.plugins.allowTagsFromPaste.allowedTags||a.allowedTags,r=t.o.plugins.allowTagsFromPaste.removableTags||a.removableTags;if(0!==o.length){var s=e(r).not(o).get();t.pasteHandlers.push((function(){setTimeout((function(){var a=t.$ed.html();e.each(s,(function(e,t){a=a.replace(new RegExp("<\\/?"+t+"(\\s[^>]*)?>","gi"),"")})),t.$ed.html(a)}),0)}))}}}}}})}(jQuery);
@@ -36,6 +36,12 @@
36
36
  errFileReaderNotSupported: 'FileReader er ikke understøttet af din browser.',
37
37
  errInvalidImage: 'Ugyldig billedfil.'
38
38
  },
39
+ et: {
40
+ base64: 'Pilt base64 formaadis',
41
+ file: 'Fail',
42
+ errFileReaderNotSupported: 'Teie veebilehitseja ei toeta FileReader funktsiooni.',
43
+ errInvalidImage: 'Vigane pildifail.'
44
+ },
39
45
  fr: {
40
46
  base64: 'Image en base64',
41
47
  file: 'Fichier'
@@ -1 +1 @@
1
- !function(e){"use strict";var a=function(){return"undefined"!=typeof FileReader},r=function(e){return/^data:image\/[a-z]?/i.test(e)};e.extend(!0,e.trumbowyg,{langs:{en:{base64:"Image as base64",file:"File",errFileReaderNotSupported:"FileReader is not supported by your browser.",errInvalidImage:"Invalid image file."},cs:{base64:"Vložit obrázek",file:"Soubor"},da:{base64:"Billede som base64",file:"Fil",errFileReaderNotSupported:"FileReader er ikke understøttet af din browser.",errInvalidImage:"Ugyldig billedfil."},fr:{base64:"Image en base64",file:"Fichier"},hu:{base64:"Kép beszúrás inline",file:"Fájl",errFileReaderNotSupported:"Ez a böngésző nem támogatja a FileReader funkciót.",errInvalidImage:"Érvénytelen képfájl."},ja:{base64:"画像 (Base64形式)",file:"ファイル",errFileReaderNotSupported:"あなたのブラウザーはFileReaderをサポートしていません",errInvalidImage:"画像形式が正しくありません"},ko:{base64:"그림 넣기(base64)",file:"파일",errFileReaderNotSupported:"FileReader가 현재 브라우저를 지원하지 않습니다.",errInvalidImage:"유효하지 않은 파일"},nl:{base64:"Afbeelding inline",file:"Bestand",errFileReaderNotSupported:"Uw browser ondersteunt deze functionaliteit niet.",errInvalidImage:"De gekozen afbeelding is ongeldig."},pt_br:{base64:"Imagem em base64",file:"Arquivo",errFileReaderNotSupported:"FileReader não é suportado pelo seu navegador.",errInvalidImage:"Arquivo de imagem inválido."},ru:{base64:"Изображение как код в base64",file:"Файл",errFileReaderNotSupported:"FileReader не поддерживается вашим браузером.",errInvalidImage:"Недопустимый файл изображения."},tr:{base64:"Base64 olarak resim",file:"Dosya",errFileReaderNotSupported:"FileReader tarayıcınız tarafından desteklenmiyor.",errInvalidImage:"Geçersiz resim dosyası."},zh_cn:{base64:"图片(Base64编码)",file:"文件"},zh_tw:{base64:"圖片(base64編碼)",file:"檔案",errFileReaderNotSupported:"你的瀏覽器不支援FileReader",errInvalidImage:"不正確的檔案格式"}},plugins:{base64:{shouldInit:a,init:function(i){var l={isSupported:a,fn:function(){i.saveRange();var a,l=i.openModalInsert(i.lang.base64,{file:{type:"file",required:!0,attributes:{accept:"image/*"}},alt:{label:"description",value:i.getRangeText()}},function(t){var n=new FileReader;n.onloadend=function(a){r(a.target.result)?(i.execCmd("insertImage",n.result,!1,!0),e(['img[src="',n.result,'"]:not([alt])'].join(""),i.$box).attr("alt",t.alt),i.closeModal()):i.addErrorOnModalField(e("input[type=file]",l),i.lang.errInvalidImage)},n.readAsDataURL(a)});e("input[type=file]").on("change",function(e){a=e.target.files[0]})}};i.addBtnDef("base64",l)}}}})}(jQuery);
1
+ !function(e){"use strict";var a=function(){return"undefined"!=typeof FileReader};e.extend(!0,e.trumbowyg,{langs:{en:{base64:"Image as base64",file:"File",errFileReaderNotSupported:"FileReader is not supported by your browser.",errInvalidImage:"Invalid image file."},cs:{base64:"Vložit obrázek",file:"Soubor"},da:{base64:"Billede som base64",file:"Fil",errFileReaderNotSupported:"FileReader er ikke understøttet af din browser.",errInvalidImage:"Ugyldig billedfil."},et:{base64:"Pilt base64 formaadis",file:"Fail",errFileReaderNotSupported:"Teie veebilehitseja ei toeta FileReader funktsiooni.",errInvalidImage:"Vigane pildifail."},fr:{base64:"Image en base64",file:"Fichier"},hu:{base64:"Kép beszúrás inline",file:"Fájl",errFileReaderNotSupported:"Ez a böngésző nem támogatja a FileReader funkciót.",errInvalidImage:"Érvénytelen képfájl."},ja:{base64:"画像 (Base64形式)",file:"ファイル",errFileReaderNotSupported:"あなたのブラウザーはFileReaderをサポートしていません",errInvalidImage:"画像形式が正しくありません"},ko:{base64:"그림 넣기(base64)",file:"파일",errFileReaderNotSupported:"FileReader가 현재 브라우저를 지원하지 않습니다.",errInvalidImage:"유효하지 않은 파일"},nl:{base64:"Afbeelding inline",file:"Bestand",errFileReaderNotSupported:"Uw browser ondersteunt deze functionaliteit niet.",errInvalidImage:"De gekozen afbeelding is ongeldig."},pt_br:{base64:"Imagem em base64",file:"Arquivo",errFileReaderNotSupported:"FileReader não é suportado pelo seu navegador.",errInvalidImage:"Arquivo de imagem inválido."},ru:{base64:"Изображение как код в base64",file:"Файл",errFileReaderNotSupported:"FileReader не поддерживается вашим браузером.",errInvalidImage:"Недопустимый файл изображения."},tr:{base64:"Base64 olarak resim",file:"Dosya",errFileReaderNotSupported:"FileReader tarayıcınız tarafından desteklenmiyor.",errInvalidImage:"Geçersiz resim dosyası."},zh_cn:{base64:"图片(Base64编码)",file:"文件"},zh_tw:{base64:"圖片(base64編碼)",file:"檔案",errFileReaderNotSupported:"你的瀏覽器不支援FileReader",errInvalidImage:"不正確的檔案格式"}},plugins:{base64:{shouldInit:a,init:function(r){var i={isSupported:a,fn:function(){var a;r.saveRange();var i=r.openModalInsert(r.lang.base64,{file:{type:"file",required:!0,attributes:{accept:"image/*"}},alt:{label:"description",value:r.getRangeText()}},(function(l){var t=new FileReader;t.onloadend=function(a){var n;n=a.target.result,/^data:image\/[a-z]?/i.test(n)?(r.execCmd("insertImage",t.result,!1,!0),e(['img[src="',t.result,'"]:not([alt])'].join(""),r.$box).attr("alt",l.alt),r.closeModal()):r.addErrorOnModalField(e("input[type=file]",i),r.lang.errInvalidImage)},t.readAsDataURL(a)}));e("input[type=file]").on("change",(function(e){a=e.target.files[0]}))}};r.addBtnDef("base64",i)}}}})}(jQuery);
@@ -1 +1 @@
1
- !function(e){"use strict";function t(e){var t=e;return t=t.replace(/<[^> ]*/g,function(e){return e.toLowerCase()}),t=t.replace(/<[^>]*>/g,function(e){return e=e.replace(/ [^=]+=/g,function(e){return e.toLowerCase()})}),t=t.replace(/<[^>]*>/g,function(e){return e=e.replace(/( [^=]+=)([^"][^ >]*)/g,'$1"$2"')})}function r(e){return e=t(e),e=e.replace(/<b(\s+|>)/g,"<strong$1"),e=e.replace(/<\/b(\s+|>)/g,"</strong$1"),e=e.replace(/<i(\s+|>)/g,"<em$1"),e=e.replace(/<\/i(\s+|>)/g,"</em$1"),e=e.replace(/<!(?:--[\s\S]*?--\s*)?>\s*/g,""),e=e.replace(/&nbsp;/gi," "),e=e.replace(/ <\//gi,"</"),e.replace(/\s+/g," "),e=e.replace(/^\s*|\s*$/g,""),e=e.replace(/<[^>]*>/g,function(e){return e=e.replace(/ ([^=]+)="[^"]*"/g,function(e,t){return["alt","href","src","title"].indexOf(t)!==-1?e:""})}),e=e.replace(/<\?xml[^>]*>/g,""),e=e.replace(/<[^ >]+:[^>]*>/g,""),e=e.replace(/<\/[^ >]+:[^>]*>/g,""),e=e.replace(/<(div|span|style|meta|link).*?>/gi,"")}e.extend(!0,e.trumbowyg,{plugins:{cleanPaste:{init:function(t){t.pasteHandlers.push(function(n){setTimeout(function(){try{t.saveRange();var a=(n.originalEvent||n).clipboardData,c=a.getData("Text"),o=t.doc.getSelection().focusNode,g=t.doc.createRange(),l=r(c.trim()),i=e(l)[0]||t.doc.createTextNode(l);""===t.$ed.html()?t.$ed[0].appendChild(i):(g.setStartAfter(o),g.setEndAfter(o),t.doc.getSelection().removeAllRanges(),t.doc.getSelection().addRange(g),t.range.insertNode(i)),g=t.doc.createRange(),g.setStartAfter(i),g.setEndAfter(i),t.doc.getSelection().removeAllRanges(),t.doc.getSelection().addRange(g),n.stopPropagation(),n.preventDefault(),t.saveRange(),t.syncCode(),t.$c.trigger("tbwchange")}catch(s){}},0)})}}}})}(jQuery);
1
+ !function(e){"use strict";e.extend(!0,e.trumbowyg,{plugins:{cleanPaste:{init:function(t){t.pasteHandlers.push((function(r){setTimeout((function(){try{t.saveRange();var a=(r.originalEvent||r).clipboardData.getData("Text"),n=t.doc.getSelection().focusNode,c=t.doc.createRange(),g=((l=(l=(l=(l=(l=(l=(l=(l=(l=a.trim()).replace(/<[^> ]*/g,(function(e){return e.toLowerCase()})).replace(/<[^>]*>/g,(function(e){return e.replace(/ [^=]+=/g,(function(e){return e.toLowerCase()}))})).replace(/<[^>]*>/g,(function(e){return e.replace(/( [^=]+=)([^"][^ >]*)/g,'$1"$2"')}))).replace(/<b(\s+|>)/g,"<strong$1")).replace(/<\/b(\s+|>)/g,"</strong$1")).replace(/<i(\s+|>)/g,"<em$1")).replace(/<\/i(\s+|>)/g,"</em$1")).replace(/<!(?:--[\s\S]*?--\s*)?>\s*/g,"")).replace(/&nbsp;/gi," ")).replace(/ <\//gi,"</")).replace(/\s+/g," "),(l=(l=(l=(l=(l=l.replace(/^\s*|\s*$/g,"")).replace(/<[^>]*>/g,(function(e){return e.replace(/ ([^=]+)="[^"]*"/g,(function(e,t){return-1!==["alt","href","src","title"].indexOf(t)?e:""}))}))).replace(/<\?xml[^>]*>/g,"")).replace(/<[^ >]+:[^>]*>/g,"")).replace(/<\/[^ >]+:[^>]*>/g,"")).replace(/<(div|span|style|meta|link).*?>/gi,"")),o=e(g)[0]||t.doc.createTextNode(g);""===t.$ed.html()?t.$ed[0].appendChild(o):(c.setStartAfter(n),c.setEndAfter(n),t.doc.getSelection().removeAllRanges(),t.doc.getSelection().addRange(c),t.range.insertNode(o)),(c=t.doc.createRange()).setStartAfter(o),c.setEndAfter(o),t.doc.getSelection().removeAllRanges(),t.doc.getSelection().addRange(c),r.stopPropagation(),r.preventDefault(),t.saveRange(),t.syncCode(),t.$c.trigger("tbwchange")}catch(e){}var l}),0)}))}}}})}(jQuery);
@@ -32,6 +32,12 @@
32
32
  foreColor: 'Textfarbe',
33
33
  backColor: 'Hintergrundfarbe'
34
34
  },
35
+ et: {
36
+ foreColor: 'Teksti värv',
37
+ backColor: 'Taustavärv',
38
+ foreColorRemove: 'Eemalda teksti värv',
39
+ backColorRemove: 'Eemalda taustavärv'
40
+ },
35
41
  fr: {
36
42
  foreColor: 'Couleur du texte',
37
43
  backColor: 'Couleur de fond',
@@ -72,7 +78,9 @@
72
78
  },
73
79
  tr: {
74
80
  foreColor: 'Yazı rengi',
75
- backColor: 'Arkaplan rengi'
81
+ backColor: 'Arka plan rengi',
82
+ foreColorRemove: 'Yazı rengini kaldır',
83
+ backColorRemove: 'Arka plan rengini kaldır'
76
84
  },
77
85
  zh_cn: {
78
86
  foreColor: '文字颜色',
@@ -98,7 +106,7 @@
98
106
  } else if (rgb === 'rgba(0, 0, 0, 0)') {
99
107
  return 'transparent';
100
108
  } else {
101
- rgb = rgb.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+))?\)$/);
109
+ rgb = rgb.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d?(.\d+)))?\)$/);
102
110
  return hex(rgb[1]) + hex(rgb[2]) + hex(rgb[3]);
103
111
  }
104
112
  }
@@ -1 +1 @@
1
- !function(o){"use strict";function r(o){return("0"+parseInt(o).toString(16)).slice(-2)}function e(o){return o.search("rgb")===-1?o.replace("#",""):"rgba(0, 0, 0, 0)"===o?"transparent":(o=o.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+))?\)$/),r(o[1])+r(o[2])+r(o[3]))}function l(o,r){var l=[];if(!o.style)return l;if(""!==o.style.backgroundColor){var a=e(o.style.backgroundColor);r.o.plugins.colors.colorList.indexOf(a)>=0?l.push("backColor"+a):l.push("backColorFree")}var t;return""!==o.style.color?t=e(o.style.color):o.hasAttribute("color")&&(t=e(o.getAttribute("color"))),t&&(r.o.plugins.colors.colorList.indexOf(t)>=0?l.push("foreColor"+t):l.push("foreColorFree")),l}function a(r,e){var l=[],a=e.o.plugins.colors,t=a[r+"List"]||a.colorList;o.each(t,function(o,t){var c=r+t,f={fn:r,forceCss:!0,hasIcon:!1,text:e.lang["#"+t]||"#"+t,param:"#"+t,style:"background-color: #"+t+";"};a.displayAsList&&"foreColor"===r&&(f.style="color: #"+t+" !important;"),e.addBtnDef(c,f),l.push(c)});var c=r+"Remove",f={fn:"removeFormat",hasIcon:!1,param:r,style:"background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAG0lEQVQIW2NkQAAfEJMRmwBYhoGBYQtMBYoAADziAp0jtJTgAAAAAElFTkSuQmCC);"};if(a.displayAsList&&(f.style=""),e.addBtnDef(c,f),l.push(c),a["allowCustom"+r.charAt(0).toUpperCase()+r.substr(1)]){var d=r+"Free",n={fn:function(){e.openModalInsert(e.lang[r],{color:{label:r,forceCss:!0,type:"color",value:"#FFFFFF"}},function(o){return e.execCmd(r,o.color),!0})},hasIcon:!1,text:"#",style:"text-indent: 0; line-height: 20px; padding: 0 5px;"};e.addBtnDef(d,n),l.push(d)}return l}o.extend(!0,o.trumbowyg,{langs:{en:{foreColor:"Text color",backColor:"Background color",foreColorRemove:"Remove text color",backColorRemove:"Remove background color"},cs:{foreColor:"Barva textu",backColor:"Barva pozadí"},da:{foreColor:"Tekstfarve",backColor:"Baggrundsfarve"},de:{foreColor:"Textfarbe",backColor:"Hintergrundfarbe"},fr:{foreColor:"Couleur du texte",backColor:"Couleur de fond",foreColorRemove:"Supprimer la couleur du texte",backColorRemove:"Supprimer la couleur de fond"},hu:{foreColor:"Betű szín",backColor:"Háttér szín",foreColorRemove:"Betű szín eltávolítása",backColorRemove:"Háttér szín eltávolítása"},ja:{foreColor:"文字色",backColor:"背景色"},ko:{foreColor:"글자색",backColor:"배경색",foreColorRemove:"글자색 지우기",backColorRemove:"배경색 지우기"},nl:{foreColor:"Tekstkleur",backColor:"Achtergrondkleur"},pt_br:{foreColor:"Cor de fonte",backColor:"Cor de fundo"},ru:{foreColor:"Цвет текста",backColor:"Цвет выделения текста"},sk:{foreColor:"Farba textu",backColor:"Farba pozadia"},tr:{foreColor:"Yazı rengi",backColor:"Arkaplan rengi"},zh_cn:{foreColor:"文字颜色",backColor:"背景颜色"},zh_tw:{foreColor:"文字顏色",backColor:"背景顏色"}}});var t={colorList:["ffffff","000000","eeece1","1f497d","4f81bd","c0504d","9bbb59","8064a2","4bacc6","f79646","ffff00","f2f2f2","7f7f7f","ddd9c3","c6d9f0","dbe5f1","f2dcdb","ebf1dd","e5e0ec","dbeef3","fdeada","fff2ca","d8d8d8","595959","c4bd97","8db3e2","b8cce4","e5b9b7","d7e3bc","ccc1d9","b7dde8","fbd5b5","ffe694","bfbfbf","3f3f3f","938953","548dd4","95b3d7","d99694","c3d69b","b2a2c7","b7dde8","fac08f","f2c314","a5a5a5","262626","494429","17365d","366092","953734","76923c","5f497a","92cddc","e36c09","c09100","7f7f7f","0c0c0c","1d1b10","0f243e","244061","632423","4f6128","3f3151","31859b","974806","7f6000"],foreColorList:null,backColorList:null,allowCustomForeColor:!0,allowCustomBackColor:!0,displayAsList:!1};o.extend(!0,o.trumbowyg,{plugins:{color:{init:function(o){o.o.plugins.colors=o.o.plugins.colors||t;var r=o.o.plugins.colors.displayAsList?o.o.prefix+"dropdown--color-list":"",e={dropdown:a("foreColor",o),dropdownClass:r},l={dropdown:a("backColor",o),dropdownClass:r};o.addBtnDef("foreColor",e),o.addBtnDef("backColor",l)},tagHandler:l}}})}(jQuery);
1
+ !function(o){"use strict";function r(o){return("0"+parseInt(o).toString(16)).slice(-2)}function e(o){return-1===o.search("rgb")?o.replace("#",""):"rgba(0, 0, 0, 0)"===o?"transparent":r((o=o.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d?(.\d+)))?\)$/))[1])+r(o[2])+r(o[3])}o.extend(!0,o.trumbowyg,{langs:{en:{foreColor:"Text color",backColor:"Background color",foreColorRemove:"Remove text color",backColorRemove:"Remove background color"},cs:{foreColor:"Barva textu",backColor:"Barva pozadí"},da:{foreColor:"Tekstfarve",backColor:"Baggrundsfarve"},de:{foreColor:"Textfarbe",backColor:"Hintergrundfarbe"},et:{foreColor:"Teksti värv",backColor:"Taustavärv",foreColorRemove:"Eemalda teksti värv",backColorRemove:"Eemalda taustavärv"},fr:{foreColor:"Couleur du texte",backColor:"Couleur de fond",foreColorRemove:"Supprimer la couleur du texte",backColorRemove:"Supprimer la couleur de fond"},hu:{foreColor:"Betű szín",backColor:"Háttér szín",foreColorRemove:"Betű szín eltávolítása",backColorRemove:"Háttér szín eltávolítása"},ja:{foreColor:"文字色",backColor:"背景色"},ko:{foreColor:"글자색",backColor:"배경색",foreColorRemove:"글자색 지우기",backColorRemove:"배경색 지우기"},nl:{foreColor:"Tekstkleur",backColor:"Achtergrondkleur"},pt_br:{foreColor:"Cor de fonte",backColor:"Cor de fundo"},ru:{foreColor:"Цвет текста",backColor:"Цвет выделения текста"},sk:{foreColor:"Farba textu",backColor:"Farba pozadia"},tr:{foreColor:"Yazı rengi",backColor:"Arka plan rengi",foreColorRemove:"Yazı rengini kaldır",backColorRemove:"Arka plan rengini kaldır"},zh_cn:{foreColor:"文字颜色",backColor:"背景颜色"},zh_tw:{foreColor:"文字顏色",backColor:"背景顏色"}}});var l={colorList:["ffffff","000000","eeece1","1f497d","4f81bd","c0504d","9bbb59","8064a2","4bacc6","f79646","ffff00","f2f2f2","7f7f7f","ddd9c3","c6d9f0","dbe5f1","f2dcdb","ebf1dd","e5e0ec","dbeef3","fdeada","fff2ca","d8d8d8","595959","c4bd97","8db3e2","b8cce4","e5b9b7","d7e3bc","ccc1d9","b7dde8","fbd5b5","ffe694","bfbfbf","3f3f3f","938953","548dd4","95b3d7","d99694","c3d69b","b2a2c7","b7dde8","fac08f","f2c314","a5a5a5","262626","494429","17365d","366092","953734","76923c","5f497a","92cddc","e36c09","c09100","7f7f7f","0c0c0c","1d1b10","0f243e","244061","632423","4f6128","3f3151","31859b","974806","7f6000"],foreColorList:null,backColorList:null,allowCustomForeColor:!0,allowCustomBackColor:!0,displayAsList:!1};function a(r,e){var l=[],a=e.o.plugins.colors,t=a[r+"List"]||a.colorList;o.each(t,(function(o,t){var c=r+t,f={fn:r,forceCss:!0,hasIcon:!1,text:e.lang["#"+t]||"#"+t,param:"#"+t,style:"background-color: #"+t+";"};a.displayAsList&&"foreColor"===r&&(f.style="color: #"+t+" !important;"),e.addBtnDef(c,f),l.push(c)}));var c=r+"Remove",f={fn:"removeFormat",hasIcon:!1,param:r,style:"background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAG0lEQVQIW2NkQAAfEJMRmwBYhoGBYQtMBYoAADziAp0jtJTgAAAAAElFTkSuQmCC);"};if(a.displayAsList&&(f.style=""),e.addBtnDef(c,f),l.push(c),a["allowCustom"+r.charAt(0).toUpperCase()+r.substr(1)]){var d=r+"Free",n={fn:function(){e.openModalInsert(e.lang[r],{color:{label:r,forceCss:!0,type:"color",value:"#FFFFFF"}},(function(o){return e.execCmd(r,o.color),!0}))},hasIcon:!1,text:"#",style:"text-indent: 0; line-height: 20px; padding: 0 5px;"};e.addBtnDef(d,n),l.push(d)}return l}o.extend(!0,o.trumbowyg,{plugins:{color:{init:function(o){o.o.plugins.colors=o.o.plugins.colors||l;var r=o.o.plugins.colors.displayAsList?o.o.prefix+"dropdown--color-list":"",e={dropdown:a("foreColor",o),dropdownClass:r},t={dropdown:a("backColor",o),dropdownClass:r};o.addBtnDef("foreColor",e),o.addBtnDef("backColor",t)},tagHandler:function(o,r){var l,a=[];if(!o.style)return a;if(""!==o.style.backgroundColor){var t=e(o.style.backgroundColor);r.o.plugins.colors.colorList.indexOf(t)>=0?a.push("backColor"+t):a.push("backColorFree")}return""!==o.style.color?l=e(o.style.color):o.hasAttribute("color")&&(l=e(o.getAttribute("color"))),l&&(r.o.plugins.colors.colorList.indexOf(l)>=0?a.push("foreColor"+l):a.push("foreColorFree")),a}}}})}(jQuery);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Trumbowyg v2.23.0 - A lightweight WYSIWYG editor
2
+ * Trumbowyg v2.25.1 - 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.1 - A lightweight WYSIWYG editor
3
3
  * Trumbowyg plugin stylesheet
4
4
  * ------------------------
5
5
  * @link http://alex-d.github.io/Trumbowyg
@@ -37,7 +37,8 @@
37
37
  height: 27px;
38
38
  background: inherit;
39
39
  border: 1px solid #fff;
40
- box-shadow: #000 0 0 2px;
40
+ -webkit-box-shadow: #000 0 0 2px;
41
+ box-shadow: #000 0 0 2px;
41
42
  z-index: 10; }
42
43
 
43
44
  .trumbowyg-dropdown-backColor.trumbowyg-dropdown--color-list button:not(.trumbowyg-backColorRemove-dropdown-button) {
@@ -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-dropdown-backColor:not(.trumbowyg-dropdown--color-list),.trumbowyg-dropdown-foreColor:not(.trumbowyg-dropdown--color-list){max-width:276px;padding:7px 5px;overflow:initial}.trumbowyg-dropdown-backColor:not(.trumbowyg-dropdown--color-list) button,.trumbowyg-dropdown-foreColor:not(.trumbowyg-dropdown--color-list) button{display:block;position:relative;float:left;text-indent:-9999px;height:20px;width:20px;border:1px solid #333;padding:0;margin:2px}.trumbowyg-dropdown-backColor:not(.trumbowyg-dropdown--color-list) button:focus::after,.trumbowyg-dropdown-backColor:not(.trumbowyg-dropdown--color-list) button:hover::after,.trumbowyg-dropdown-foreColor:not(.trumbowyg-dropdown--color-list) button:focus::after,.trumbowyg-dropdown-foreColor:not(.trumbowyg-dropdown--color-list) button:hover::after{content:" ";display:block;position:absolute;top:-5px;left:-5px;width:27px;height:27px;background:inherit;border:1px solid #fff;box-shadow:#000 0 0 2px;z-index:10}.trumbowyg-dropdown-backColor.trumbowyg-dropdown--color-list button:not(.trumbowyg-backColorRemove-dropdown-button){position:relative;color:#fff!important}.trumbowyg-dropdown-backColor.trumbowyg-dropdown--color-list button:not(.trumbowyg-backColorRemove-dropdown-button):focus::after,.trumbowyg-dropdown-backColor.trumbowyg-dropdown--color-list button:not(.trumbowyg-backColorRemove-dropdown-button):hover::after{content:" ";display:block;position:absolute;top:13px;left:0;width:0;height:0;border:5px solid transparent;border-left-color:#fff}
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-dropdown-backColor:not(.trumbowyg-dropdown--color-list),.trumbowyg-dropdown-foreColor:not(.trumbowyg-dropdown--color-list){max-width:276px;padding:7px 5px;overflow:initial}.trumbowyg-dropdown-backColor:not(.trumbowyg-dropdown--color-list) button,.trumbowyg-dropdown-foreColor:not(.trumbowyg-dropdown--color-list) button{display:block;position:relative;float:left;text-indent:-9999px;height:20px;width:20px;border:1px solid #333;padding:0;margin:2px}.trumbowyg-dropdown-backColor:not(.trumbowyg-dropdown--color-list) button:focus::after,.trumbowyg-dropdown-backColor:not(.trumbowyg-dropdown--color-list) button:hover::after,.trumbowyg-dropdown-foreColor:not(.trumbowyg-dropdown--color-list) button:focus::after,.trumbowyg-dropdown-foreColor:not(.trumbowyg-dropdown--color-list) button:hover::after{content:" ";display:block;position:absolute;top:-5px;left:-5px;width:27px;height:27px;background:inherit;border:1px solid #fff;-webkit-box-shadow:#000 0 0 2px;box-shadow:#000 0 0 2px;z-index:10}.trumbowyg-dropdown-backColor.trumbowyg-dropdown--color-list button:not(.trumbowyg-backColorRemove-dropdown-button){position:relative;color:#fff!important}.trumbowyg-dropdown-backColor.trumbowyg-dropdown--color-list button:not(.trumbowyg-backColorRemove-dropdown-button):focus::after,.trumbowyg-dropdown-backColor.trumbowyg-dropdown--color-list button:not(.trumbowyg-backColorRemove-dropdown-button):hover::after{content:" ";display:block;position:absolute;top:13px;left:0;width:0;height:0;border:5px solid transparent;border-left-color:#fff}
@@ -1339,6 +1339,9 @@
1339
1339
  de: {
1340
1340
  emoji: 'Emoticon einfügen'
1341
1341
  },
1342
+ et: {
1343
+ emoji: 'Lisa emotikon'
1344
+ },
1342
1345
  fr: {
1343
1346
  emoji: 'Ajouter un emoji'
1344
1347
  },