summernote-rails 0.5.10.2 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +33 -159
  3. data/lib/summernote-rails.rb +14 -0
  4. data/lib/{summernote/rails.rb → summernote-rails/engine.rb} +2 -4
  5. data/lib/summernote-rails/railtie.rb +5 -0
  6. data/lib/summernote-rails/simple_form/summernote_input.rb +7 -0
  7. data/lib/summernote-rails/version.rb +5 -0
  8. data/vendor/assets/javascripts/summernote/index.js +2 -0
  9. data/vendor/assets/javascripts/{lang/summernote-ar-AR.js → summernote/locales/ar-AR.js} +3 -12
  10. data/vendor/assets/javascripts/{lang/summernote-ca-ES.js → summernote/locales/ca-ES.js} +93 -102
  11. data/vendor/assets/javascripts/{lang/summernote-cs-CZ.js → summernote/locales/cs-CZ.js} +1 -10
  12. data/vendor/assets/javascripts/{lang/summernote-da-DK.js → summernote/locales/da-DK.js} +11 -12
  13. data/vendor/assets/javascripts/{lang/summernote-de-DE.js → summernote/locales/de-DE.js} +2 -11
  14. data/vendor/assets/javascripts/{lang/summernote-es-ES.js → summernote/locales/es-ES.js} +1 -12
  15. data/vendor/assets/javascripts/{lang/summernote-es-EU.js → summernote/locales/es-EU.js} +12 -21
  16. data/vendor/assets/javascripts/summernote/locales/fa-IR.js +96 -0
  17. data/vendor/assets/javascripts/{lang/summernote-fi-FI.js → summernote/locales/fi-FI.js} +1 -10
  18. data/vendor/assets/javascripts/{lang/summernote-fr-FR.js → summernote/locales/fr-FR.js} +1 -12
  19. data/vendor/assets/javascripts/summernote/locales/he-IL.js +96 -0
  20. data/vendor/assets/javascripts/summernote/locales/hu-HU.js +96 -0
  21. data/vendor/assets/javascripts/{lang/summernote-id-ID.js → summernote/locales/id-ID.js} +1 -10
  22. data/vendor/assets/javascripts/summernote/locales/index.js +1 -0
  23. data/vendor/assets/javascripts/{lang/summernote-it-IT.js → summernote/locales/it-IT.js} +1 -10
  24. data/vendor/assets/javascripts/{lang/summernote-ja-JP.js → summernote/locales/ja-JP.js} +1 -10
  25. data/vendor/assets/javascripts/{lang/summernote-ko-KR.js → summernote/locales/ko-KR.js} +5 -10
  26. data/vendor/assets/javascripts/{lang/summernote-nb-NO.js → summernote/locales/nb-NO.js} +1 -10
  27. data/vendor/assets/javascripts/{lang/summernote-nl-NL.js → summernote/locales/nl-NL.js} +1 -10
  28. data/vendor/assets/javascripts/{lang/summernote-pl-PL.js → summernote/locales/pl-PL.js} +1 -10
  29. data/vendor/assets/javascripts/{lang/summernote-pt-BR.js → summernote/locales/pt-BR.js} +2 -10
  30. data/vendor/assets/javascripts/{lang/summernote-ro-RO.js → summernote/locales/ro-RO.js} +1 -10
  31. data/vendor/assets/javascripts/{lang/summernote-ru-RU.js → summernote/locales/ru-RU.js} +2 -13
  32. data/vendor/assets/javascripts/{lang/summernote-sk-SK.js → summernote/locales/sk-SK.js} +1 -10
  33. data/vendor/assets/javascripts/{lang/summernote-sl-SI.js → summernote/locales/sl-SI.js} +1 -12
  34. data/vendor/assets/javascripts/{lang/summernote-sr-RS-Latin.js → summernote/locales/sr-RS-Latin.js} +1 -10
  35. data/vendor/assets/javascripts/{lang/summernote-sr-RS.js → summernote/locales/sr-RS.js} +1 -10
  36. data/vendor/assets/javascripts/{lang/summernote-sv-SE.js → summernote/locales/sv-SE.js} +1 -10
  37. data/vendor/assets/javascripts/{lang/summernote-th-TH.js → summernote/locales/th-TH.js} +1 -12
  38. data/vendor/assets/javascripts/{lang/summernote-tr-TR.js → summernote/locales/tr-TR.js} +9 -11
  39. data/vendor/assets/javascripts/{lang/summernote-uk-UA.js → summernote/locales/uk-UA.js} +1 -12
  40. data/vendor/assets/javascripts/{lang/summernote-vi-VN.js → summernote/locales/vi-VN.js} +2 -11
  41. data/vendor/assets/javascripts/{lang/summernote-zh-CN.js → summernote/locales/zh-CN.js} +1 -10
  42. data/vendor/assets/javascripts/{lang/summernote-zh-TW.js → summernote/locales/zh-TW.js} +1 -10
  43. data/vendor/assets/javascripts/{summernote.js → summernote/summernote.js} +2370 -1419
  44. data/vendor/assets/stylesheets/{summernote-bs2.css → summernote/bs2.css} +1 -1
  45. data/vendor/assets/stylesheets/{summernote-bs3.css → summernote/bs3.css} +92 -92
  46. data/vendor/assets/stylesheets/summernote/index.css +3 -0
  47. data/vendor/assets/stylesheets/summernote/summernote.css +1 -0
  48. metadata +50 -44
  49. data/lib/summernote/rails/version.rb +0 -5
  50. data/vendor/assets/javascripts/lang/summernote-fa-IR.js +0 -105
  51. data/vendor/assets/javascripts/lang/summernote-hu-HU.js +0 -105
  52. data/vendor/assets/javascripts/summernote.min.js +0 -2
  53. data/vendor/assets/stylesheets/summernote.css +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0389860d8ad77ca2201ce25aca995ea4d4fe882
4
- data.tar.gz: 696d8c7b9ff461094bd2127de625c67add6a7780
3
+ metadata.gz: c6105e18497d1668efa1af2eb2689ca8d525c55a
4
+ data.tar.gz: 8f23dd9eed1d54053a6e8bafc42f209141edaf02
5
5
  SHA512:
6
- metadata.gz: 16e021f19dd9e4271dc5ec895055b0ccdb4ecb8db64e5f59c5e750b102739ff7045594cf7fc832da00d1b6e84231a0f18d694f68cf71b1bb88f15ea6721569c2
7
- data.tar.gz: 9b57d849ba47408b2076829b582ca01e138b2b39f884633b618ad16fcbce0ebfd52fbc882a1f66e78940ee1948271cb952b9dbc0034267b611911fd1b841bc1d
6
+ metadata.gz: a002e49750f8291ce404b5de073cf5c79211efc34e62e982e4361827b3f8df6d180fa7ffb7deaa087ec208e741a15ac4bfd1428861c03b53486649883b68a8f4
7
+ data.tar.gz: 26d3fbe7788c46c072bd4688a5806bbd0e5561ad44014ddd90948af97003ae31d43ddc700204c75a7bcebe7b019871e9d29d70df2b4b592fdf9301431172abac
data/README.md CHANGED
@@ -1,10 +1,8 @@
1
1
  # Summernote::Rails
2
2
 
3
- This gem was built to gemify the assets used in Summernote, the Super Simple WYSIWYG Editor on Bootstrap, for Ruby on Rails version >= 3.1.
3
+ This gem was built to package the assets used in Summernote, the Super Simple WYSIWYG Editor on Bootstrap, for Ruby on Rails version >= 3.1.
4
4
 
5
- If you want to get the detailed information on how to use summernote editor, please click URL link to the website of Summernote.
6
-
7
- https://github.com/hackerwins/summernote.
5
+ https://github.com/summernote/summernote-rails.
8
6
 
9
7
  The version of summernote-rails is matched with that of summernote editor.
10
8
 
@@ -15,18 +13,9 @@ The version of summernote-rails is matched with that of summernote editor.
15
13
  Add the following gems to your application's Gemfile:
16
14
 
17
15
  ```ruby
18
- gem 'simple_form'
19
-
20
- # You'll need to include the following dependencies of Summernote
21
- gem 'bootstrap-sass'
22
- gem "font-awesome-rails"
23
-
24
- # This is the right gem to use summernote editor in Rails projects.
25
16
  gem 'summernote-rails'
26
- gem 'codemirror-rails'
27
-
28
- # To solve the problems on the turbolinks
29
- gem 'jquery-turbolinks'
17
+ gem 'font-awesome-rails' # required
18
+ gem 'bootstrap-sass' # required
30
19
  ```
31
20
 
32
21
  And then execute:
@@ -37,172 +26,57 @@ $ bundle install
37
26
 
38
27
  ## Usage
39
28
 
40
- First of all, the summernote editor works on Bootstrap and so it is assumed that you have already set it up.
41
-
42
-
43
29
  In app/assets/stylesheets/application.css.scss,
44
30
 
45
31
  ```css
46
- // Bootstrap 3
47
- @import "bootstrap";
48
- @import "font-awesome";
49
- @import "summernote";
50
- @import "codemirror";
51
- @import "codemirror/themes/solarized";
52
- @import "posts";
53
- body {padding-top:3em;}
32
+ *= require font-awesome
33
+ *= require summernote
34
+ *= require summernote/bs3
35
+
36
+ Or if you are using bootstrap 2:
37
+ *= require summernote/bs2
54
38
  ```
55
39
 
56
40
  In app/assets/javascripts/application.js, you should add the following:
57
41
 
58
42
  ```js
59
- //= require jquery
60
- //= require jquery.turbolinks
61
- //= require jquery_ujs
62
43
  //= require bootstrap
63
- //= require codemirror
64
- //= require codemirror/modes/ruby
65
- //= require codemirror/modes/sass
66
- //= require codemirror/modes/shell
67
- //= require codemirror/modes/sql
68
- //= require codemirror/modes/slim
69
- //= require codemirror/modes/nginx
70
- //= require codemirror/modes/markdown
71
- //= require codemirror/modes/javascript
72
- //= require codemirror/modes/http
73
- //= require codemirror/modes/htmlmixed
74
- //= require codemirror/modes/haml
75
- //= require codemirror/modes/xml
76
- //= require codemirror/modes/css
77
- //= require codemirror/modes/yaml
78
- //= require codemirror/modes/slim
79
- //= require codemirror/modes/php
80
44
  //= require summernote
81
- //= require lang/summernote-ko-KR
82
- //= require_tree .
83
- //= require turbolinks
84
45
  ```
85
46
 
86
- For example, if you made a `Post` model using `scaffold generator` of Rails, you would see the `post` form view template in app/views/posts/_form.html.erb.
87
-
88
- In that template file, you should add `summernote` class to the textarea input as the following:
89
-
47
+ Basic Example:
90
48
  ```html
91
- <%= simple_form_for(@post) do |f| %>
92
- <%= f.error_notification %>
93
-
94
- <div class="form-group">
95
- <%= f.input :title, input_html:{class:'form-control'} %>
96
- </div>
97
- <div class="form-group">
98
- <%= f.input :content, class:'summernote' %>
99
- </div>
100
-
101
- <div class="form-group">
102
- <%= f.button :submit, class:'btn btn-default' %>
103
- </div>
104
- <% end %>
49
+ <div id="summernote">Hello Summernote</div>
50
+
51
+ <script type="text/javascript">
52
+ $(document).ready(function() {
53
+ $('#summernote').summernote();
54
+ });
55
+ </script>
105
56
  ```
106
57
 
107
- And then, in `post`-dedicated coffeescript file, app/assets/javascripts/posts.js.coffee, you should add the following:
58
+ Ideally, you would do it like this:
108
59
 
109
- ```js
110
- $ ->
111
-
112
- # to set summernote object
113
- # You should change '#post_content' to your textarea input id
114
- summer_note = $('#post_content')
115
-
116
- # to call summernote editor
117
- summer_note.summernote
118
- # to set options
119
- height:500
120
- lang: 'ko-KR'
121
- codemirror:
122
- lineNumbers: true
123
- tabSize: 2
124
- theme: "solarized light"
125
-
126
- # to set code for summernote
127
- summer_note.code summer_note.val()
128
-
129
- # to get code for summernote
130
- summer_note.closest('form').submit ->
131
- # alert $('#post_content').code()
132
- summer_note.val summer_note.code()
133
- true
134
60
  ```
61
+ # This goes into your main javascript file. Customize as you need.
135
62
 
136
- That's it.
63
+ $('[data-provider="summernote"]').each(function(){
64
+ $(this).summernote({ });
65
+ })
66
+ ```
137
67
 
68
+ Then, if you are using simple_form, you can use the `:summernote` input type. This input types simply adds the `data-provider="summernote"` to the field.
138
69
 
139
- ## Sample projects
70
+ ```
71
+ = simple_form_for(:example) do |f|
72
+ = f.input :text, as: :summernote
73
+ ```
140
74
 
141
- - Rails 3.2.16 : https://github.com/rorlab/summernote-test-r3
142
- - Rails 4.1.6 : https://github.com/rorlab/summernote-rails-sample
143
-
144
- ## Changelogs
145
-
146
- - v0.5.10.2
147
- * Updated README.md
148
-
149
- - v0.5.10.0
150
- * Updated with `v0.5.10 Summernote, 2014-10-3`
151
-
152
- - v0.5.9 2014-09-21
153
- * Dom Editing: insert(Un)OrderedList, indent/outdent
154
- * History in a line.
155
-
156
- - v0.5.8 2014-08-31
157
- * Remove autoFormatRange option
158
- * Fixed onChange issues
159
-
160
- - v0.5.7 ~ v0.5.4 2014-08-29 ~ 2014-08-23
161
- * Dom editing: insertPara, insertNode
162
-
163
- - v0.5.3 2014-07-25
164
- * Extract codemirror.autoFormatOnStart option
165
- * Bug patch (createLink)
166
-
167
- - v0.5.2 2014-07-20
168
- * Air Mode
169
- * And bug patch (scroll, createLink, ...)
170
-
171
- - v0.5.1 2014-03-16
172
- * Support 15 Languages(https://github.com/HackerWins/summernote/tree/master/lang)
173
- * Add local-server for develop summernote.
174
- * Font style: Font-Family
175
- * And Bug patch.
176
-
177
- - v0.5.0 : Support i18n
178
- * Updated with `v0.5 Summernote, 2013-12-29` as the followings:
179
- * Support both Font-Awesome 3.x and 4.x
180
- * CodeMirror as Codeview
181
- * Insert Video (by cdownie)
182
- * Support 5 Languages(by hendrismit, tschiela, inomies, cverond)
183
- * Restructuring: jQuery build pattern
184
-
185
- - v0.4.0 : Support both Bootstrap 3.0 and 2.x
186
- * Updated with `v0.4 Summernote, 2013-11-01` as the followings:
187
- * View mode
188
- * Fullscreen
189
- * Code view
190
- * Image upload callback
191
- - v0.3.0 : Added the resizing bar at the bottom of editor.
192
- * Updated with `v0.3 Summernote, 2013-09-01` as the followings:
193
- * `FIXED` bugs(image upload, fontsize, tab, recent color, ...)
194
- * `ADDED` help dialog(keyboard shortcut)
195
- * `ADDED` init options(event callbacks, custom toolbar)
196
- * `ADDED` resize bar
197
- * `ADDED` support IE8 Beta(some range bugs, can't insert Image)
198
- - v0.2.1.4 : Enable to customize Toolbar Collection
199
- - v0.2.1.3 : Added Help button in editor toolbox to popup Hot Key Table
200
- - v0.2.1.2 : Added InsertHorizontalRule(Cmd+Enter) in summernote editor /
201
- Added summernote.js
202
- - v0.2.1.1 : Available for Rails >= 3.1
203
- - v0.2.1 : Bugfixed file uploading
204
- - v0.2.0 : Available for Rails v4.0
75
+ If you are not using simple_form, then simply add the `data-provider="summernote"` to the input field yourself.
76
+
77
+ ## Sample projects
205
78
 
79
+ For an example, take a look at the summernote-rails-test folder in this repository.
206
80
 
207
81
  ## Contributing
208
82
 
@@ -0,0 +1,14 @@
1
+ require 'rails'
2
+ require "summernote-rails/version"
3
+
4
+ autoload :SummernoteInput, 'summernote-rails/simple_form/summernote_input'
5
+
6
+ module SummernoteRails
7
+ module Rails
8
+ if ::Rails.version.to_s < "3.1"
9
+ require "summernote-rails/railtie"
10
+ else
11
+ require "summernote-rails/engine"
12
+ end
13
+ end
14
+ end
@@ -1,8 +1,6 @@
1
- require "summernote/rails/version"
2
-
3
- module Summernote
1
+ module SummernoteRails
4
2
  module Rails
5
3
  class Engine < ::Rails::Engine
6
4
  end
7
5
  end
8
- end
6
+ end
@@ -0,0 +1,5 @@
1
+ module SummernoteRails
2
+ module Rails
3
+ class Railtie < ::Rails::Railtie; end
4
+ end
5
+ end
@@ -0,0 +1,7 @@
1
+ class SummernoteInput < SimpleForm::Inputs::TextInput
2
+ def input(wrapper_options)
3
+ input_html_options[:data] ||= {}
4
+ input_html_options[:data].merge!({ provider: 'summernote' })
5
+ super
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ module SummernoteRails
2
+ module Rails
3
+ VERSION = "0.6.1"
4
+ end
5
+ end
@@ -0,0 +1,2 @@
1
+ //= require ./summernote
2
+ //= require ./locales/
@@ -5,11 +5,9 @@
5
5
  bold: 'عريض',
6
6
  italic: 'مائل',
7
7
  underline: 'تحته خط',
8
- strikethrough: 'فى وسطه خط',
9
8
  clear: 'مسح التنسيق',
10
9
  height: 'إرتفاع السطر',
11
- name: 'الخط',
12
- size: 'الحجم'
10
+ name: 'الخط'
13
11
  },
14
12
  image: {
15
13
  image: 'صورة',
@@ -34,13 +32,6 @@
34
32
  url: 'مسار الرابط',
35
33
  openInNewWindow: 'فتح في نافذة جديدة'
36
34
  },
37
- video: {
38
- video: 'فيديو',
39
- videoLink: 'رابط الفيديو',
40
- insert: 'إدراج الفيديو',
41
- url: 'رابط الفيديو',
42
- providers: '(YouTube, Vimeo, Vine, Instagram, DailyMotion ou Youku)'
43
- },
44
35
  table: {
45
36
  table: 'جدول'
46
37
  },
@@ -96,8 +87,8 @@
96
87
  documentStyle: 'تنسيق المستند'
97
88
  },
98
89
  history: {
99
- undo: 'Undo',
100
- redo: 'Redo'
90
+ undo: 'تراجع',
91
+ redo: 'إعادة'
101
92
  }
102
93
  }
103
94
  });
@@ -1,102 +1,93 @@
1
- (function ($) {
2
- $.extend($.summernote.lang, {
3
- 'ca-ES': {
4
- font: {
5
- bold: 'Negreta',
6
- italic: 'Cursiva',
7
- underline: 'Subratllat',
8
- strikethrough: 'Ratllat',
9
- clear: 'Treure estil de lletra',
10
- height: 'Alçada de línia',
11
- size: 'Mida de lletra'
12
- },
13
- image: {
14
- image: 'Imatge',
15
- insert: 'Inserir imatge',
16
- resizeFull: 'Redimensionar a mida completa',
17
- resizeHalf: 'Redimensionar a la meitat',
18
- resizeQuarter: 'Redimensionar a un quart',
19
- floatLeft: 'Surar a l%27esquerra',
20
- floatRight: 'Surar a la dreta',
21
- floatNone: 'No surar',
22
- dragImageHere: 'Arrossegueu una imatge aquí',
23
- selectFromFiles: 'Seleccioneu des dels arxius',
24
- url: 'URL de la imatge'
25
- },
26
- link: {
27
- link: 'Enllaç',
28
- insert: 'Inserir enllaç',
29
- unlink: 'Treure enllaç',
30
- edit: 'Editar',
31
- textToDisplay: 'Text per mostrar',
32
- url: 'Cap a quina URL porta l\'enllaç?',
33
- openInNewWindow: 'Obrir en una finestra nova'
34
- },
35
- video: {
36
- video: 'Video',
37
- videoLink: 'Enllaç del video',
38
- insert: 'Inserir video',
39
- url: 'URL del video?',
40
- providers: '(YouTube, Vimeo, Vine, Instagram, DailyMotion, o Youku)'
41
- },
42
- table: {
43
- table: 'Taula'
44
- },
45
- hr: {
46
- insert: 'Inserir línia horitzontal'
47
- },
48
- style: {
49
- style: 'Estil',
50
- normal: 'Normal',
51
- blockquote: 'Cita',
52
- pre: 'Codi',
53
- h1: 'Títol 1',
54
- h2: 'Títol 2',
55
- h3: 'Títol 3',
56
- h4: 'Títol 4',
57
- h5: 'Títol 5',
58
- h6: 'Títol 6'
59
- },
60
- lists: {
61
- unordered: 'Llista desendreçada',
62
- ordered: 'Llista endreçada'
63
- },
64
- options: {
65
- help: 'Ajut',
66
- fullscreen: 'Pantalla sencera',
67
- codeview: 'Veure codi font'
68
- },
69
- paragraph: {
70
- paragraph: 'Paràgraf',
71
- outdent: 'Menys tabulació',
72
- indent: 'Més tabulació',
73
- left: 'Alinear a l\'esquerra',
74
- center: 'Alinear al mig',
75
- right: 'Alinear a la dreta',
76
- justify: 'Justificar'
77
- },
78
- color: {
79
- recent: 'Últim color',
80
- more: 'Més colors',
81
- background: 'Color de fons',
82
- foreground: 'Color de lletra',
83
- transparent: 'Transparent',
84
- setTransparent: 'Establir transparent',
85
- reset: 'Restablir',
86
- resetToDefault: 'Restablir per defecte'
87
- },
88
- shortcut: {
89
- shortcuts: 'Dreceres de teclat',
90
- close: 'Tancar',
91
- textFormatting: 'Format de text',
92
- action: 'Acció',
93
- paragraphFormatting: 'Format de paràgraf',
94
- documentStyle: 'Estil del document'
95
- },
96
- history: {
97
- undo: 'Desfer',
98
- redo: 'Refer'
99
- }
100
- }
101
- });
102
- })(jQuery);
1
+ (function ($) {
2
+ $.extend($.summernote.lang, {
3
+ 'ca-ES': {
4
+ font: {
5
+ bold: 'Negreta',
6
+ italic: 'Cursiva',
7
+ underline: 'Subratllat',
8
+ clear: 'Treure estil de lletra',
9
+ height: 'Alçada de línia'
10
+ },
11
+ image: {
12
+ image: 'Imatge',
13
+ insert: 'Inserir imatge',
14
+ resizeFull: 'Redimensionar a mida completa',
15
+ resizeHalf: 'Redimensionar a la meitat',
16
+ resizeQuarter: 'Redimensionar a un quart',
17
+ floatLeft: 'Surar a l%27esquerra',
18
+ floatRight: 'Surar a la dreta',
19
+ floatNone: 'No surar',
20
+ dragImageHere: 'Arrossegueu una imatge aquí',
21
+ selectFromFiles: 'Seleccioneu des dels arxius',
22
+ url: 'URL de la imatge'
23
+ },
24
+ link: {
25
+ link: 'Enllaç',
26
+ insert: 'Inserir enllaç',
27
+ unlink: 'Treure enllaç',
28
+ edit: 'Editar',
29
+ textToDisplay: 'Text per mostrar',
30
+ url: 'Cap a quina URL porta l\'enllaç?',
31
+ openInNewWindow: 'Obrir en una finestra nova'
32
+ },
33
+ table: {
34
+ table: 'Taula'
35
+ },
36
+ hr: {
37
+ insert: 'Inserir línia horitzontal'
38
+ },
39
+ style: {
40
+ style: 'Estil',
41
+ normal: 'Normal',
42
+ blockquote: 'Cita',
43
+ pre: 'Codi',
44
+ h1: 'Títol 1',
45
+ h2: 'Títol 2',
46
+ h3: 'Títol 3',
47
+ h4: 'Títol 4',
48
+ h5: 'Títol 5',
49
+ h6: 'Títol 6'
50
+ },
51
+ lists: {
52
+ unordered: 'Llista desendreçada',
53
+ ordered: 'Llista endreçada'
54
+ },
55
+ options: {
56
+ help: 'Ajut',
57
+ fullscreen: 'Pantalla sencera',
58
+ codeview: 'Veure codi font'
59
+ },
60
+ paragraph: {
61
+ paragraph: 'Paràgraf',
62
+ outdent: 'Menys tabulació',
63
+ indent: 'Més tabulació',
64
+ left: 'Alinear a l\'esquerra',
65
+ center: 'Alinear al mig',
66
+ right: 'Alinear a la dreta',
67
+ justify: 'Justificar'
68
+ },
69
+ color: {
70
+ recent: 'Últim color',
71
+ more: 'Més colors',
72
+ background: 'Color de fons',
73
+ foreground: 'Color de lletra',
74
+ transparent: 'Transparent',
75
+ setTransparent: 'Establir transparent',
76
+ reset: 'Restablir',
77
+ resetToDefault: 'Restablir per defecte'
78
+ },
79
+ shortcut: {
80
+ shortcuts: 'Dreceres de teclat',
81
+ close: 'Tancar',
82
+ textFormatting: 'Format de text',
83
+ action: 'Acció',
84
+ paragraphFormatting: 'Format de paràgraf',
85
+ documentStyle: 'Estil del document'
86
+ },
87
+ history: {
88
+ undo: 'Desfer',
89
+ redo: 'Refer'
90
+ }
91
+ }
92
+ });
93
+ })(jQuery);