bootstrap-wysihtml5-rails 0.3.1.9 → 0.3.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -62,6 +62,14 @@ Or just add the ones that you want
62
62
  //= require bootstrap-wysihtml5/locales/es-ES
63
63
  ```
64
64
 
65
+ Rails compiles and minify all stylesheets into a single file. We need `bootstrap-wysihtml5/wysiwyg-color.css` to be available as a single file.
66
+ Modify `config/environments/production.rb` to contain:
67
+
68
+ ```
69
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
70
+ config.assets.precompile += %w( bootstrap-wysihtml5/wysiwyg-color.css )
71
+ ```
72
+
65
73
  You may need to restart your rails server.
66
74
 
67
75
  ## Using bootstrap-wysihtml5-rails
@@ -69,11 +77,14 @@ You may need to restart your rails server.
69
77
  Just call wysihtml5() with any selector.
70
78
 
71
79
  ```html
72
- <textarea id="some-textarea" placeholder="Enter text ..."></textarea>
80
+ <textarea id="some-textarea" class='wysihtml5' placeholder="Enter text ..."></textarea>
73
81
 
74
82
  <script type="text/javascript">
75
- $('#some-textarea').wysihtml5();
83
+ $('.wysihtml5').each(function(i, elem) {
84
+ $(elem).wysihtml5();
85
+ });
76
86
  </script>
87
+
77
88
  ```
78
89
 
79
90
  A live example: http://jsfiddle.net/5UUrg/
data/Rakefile CHANGED
@@ -36,16 +36,7 @@ task 'update' do
36
36
  end
37
37
 
38
38
  desc "Release a new version"
39
- task "release" do
40
- version_file = File.read("lib/bootstrap-wysihtml5-rails/version.rb")
41
- minor = version_file.match(/MINOR = \d+/)[0]
42
- minor_integer = minor.match(/\d+/)[0].to_i + 1
43
- replaced = version_file.gsub(minor, "MINOR = " + minor_integer.to_s)
44
- File.open("lib/bootstrap-wysihtml5-rails/version.rb", "w") { |file| file.puts replaced }
45
-
46
- system("git add . ")
47
- system("git commit -m 'update assets'")
48
-
39
+ task "release" do
49
40
  system("gem build bootstrap-wysihtml5-rails.gemspec")
50
41
  system("gem push bootstrap-wysihtml5-rails-#{BootstrapWysihtml5Rails::Rails::VERSION}.gem")
51
42
  system("git push")
@@ -1,6 +1,6 @@
1
1
  module BootstrapWysihtml5Rails
2
2
  module Rails
3
- MINOR = 9
3
+ MINOR = 10
4
4
  VERSION = "0.3.1.#{MINOR}"
5
5
  end
6
6
  end
@@ -1,111 +1,122 @@
1
1
  !function($, wysi) {
2
2
  "use strict";
3
3
 
4
- var templates = function(key, locale) {
4
+ var tpl = {
5
+ "font-styles": function(locale) {
6
+ return "<li class='dropdown'>" +
7
+ "<a class='btn dropdown-toggle' data-toggle='dropdown' href='#'>" +
8
+ "<i class='icon-font'></i>&nbsp;<span class='current-font'>" + locale.font_styles.normal + "</span>&nbsp;<b class='caret'></b>" +
9
+ "</a>" +
10
+ "<ul class='dropdown-menu'>" +
11
+ "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='div'>" + locale.font_styles.normal + "</a></li>" +
12
+ "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h1'>" + locale.font_styles.h1 + "</a></li>" +
13
+ "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h2'>" + locale.font_styles.h2 + "</a></li>" +
14
+ "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h3'>" + locale.font_styles.h3 + "</a></li>" +
15
+ "</ul>" +
16
+ "</li>";
17
+ },
18
+
19
+ "emphasis": function(locale) {
20
+ return "<li>" +
21
+ "<div class='btn-group'>" +
22
+ "<a class='btn' data-wysihtml5-command='bold' title='CTRL+B'>" + locale.emphasis.bold + "</a>" +
23
+ "<a class='btn' data-wysihtml5-command='italic' title='CTRL+I'>" + locale.emphasis.italic + "</a>" +
24
+ "<a class='btn' data-wysihtml5-command='underline' title='CTRL+U'>" + locale.emphasis.underline + "</a>" +
25
+ "</div>" +
26
+ "</li>";
27
+ },
28
+
29
+ "lists": function(locale) {
30
+ return "<li>" +
31
+ "<div class='btn-group'>" +
32
+ "<a class='btn' data-wysihtml5-command='insertUnorderedList' title='" + locale.lists.unordered + "'><i class='icon-list'></i></a>" +
33
+ "<a class='btn' data-wysihtml5-command='insertOrderedList' title='" + locale.lists.ordered + "'><i class='icon-th-list'></i></a>" +
34
+ "<a class='btn' data-wysihtml5-command='Outdent' title='" + locale.lists.outdent + "'><i class='icon-indent-right'></i></a>" +
35
+ "<a class='btn' data-wysihtml5-command='Indent' title='" + locale.lists.indent + "'><i class='icon-indent-left'></i></a>" +
36
+ "</div>" +
37
+ "</li>";
38
+ },
39
+
40
+ "link": function(locale) {
41
+ return "<li>" +
42
+ "<div class='bootstrap-wysihtml5-insert-link-modal modal hide fade'>" +
43
+ "<div class='modal-header'>" +
44
+ "<a class='close' data-dismiss='modal'>&times;</a>" +
45
+ "<h3>" + locale.link.insert + "</h3>" +
46
+ "</div>" +
47
+ "<div class='modal-body'>" +
48
+ "<input value='http://' class='bootstrap-wysihtml5-insert-link-url input-xlarge'>" +
49
+ "</div>" +
50
+ "<div class='modal-footer'>" +
51
+ "<a href='#' class='btn' data-dismiss='modal'>" + locale.link.cancel + "</a>" +
52
+ "<a href='#' class='btn btn-primary' data-dismiss='modal'>" + locale.link.insert + "</a>" +
53
+ "</div>" +
54
+ "</div>" +
55
+ "<a class='btn' data-wysihtml5-command='createLink' title='" + locale.link.insert + "'><i class='icon-share'></i></a>" +
56
+ "</li>";
57
+ },
58
+
59
+ "image": function(locale) {
60
+ return "<li>" +
61
+ "<div class='bootstrap-wysihtml5-insert-image-modal modal hide fade'>" +
62
+ "<div class='modal-header'>" +
63
+ "<a class='close' data-dismiss='modal'>&times;</a>" +
64
+ "<h3>" + locale.image.insert + "</h3>" +
65
+ "</div>" +
66
+ "<div class='modal-body'>" +
67
+ "<input value='http://' class='bootstrap-wysihtml5-insert-image-url input-xlarge'>" +
68
+ "</div>" +
69
+ "<div class='modal-footer'>" +
70
+ "<a href='#' class='btn' data-dismiss='modal'>" + locale.image.cancel + "</a>" +
71
+ "<a href='#' class='btn btn-primary' data-dismiss='modal'>" + locale.image.insert + "</a>" +
72
+ "</div>" +
73
+ "</div>" +
74
+ "<a class='btn' data-wysihtml5-command='insertImage' title='" + locale.image.insert + "'><i class='icon-picture'></i></a>" +
75
+ "</li>";
76
+ },
5
77
 
6
- var tpl = {
7
- "font-styles":
8
- "<li class='dropdown'>" +
9
- "<a class='btn dropdown-toggle' data-toggle='dropdown' href='#'>" +
10
- "<i class='icon-font'></i>&nbsp;<span class='current-font'>" + locale.font_styles.normal + "</span>&nbsp;<b class='caret'></b>" +
11
- "</a>" +
12
- "<ul class='dropdown-menu'>" +
13
- "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='div'>" + locale.font_styles.normal + "</a></li>" +
14
- "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h1'>" + locale.font_styles.h1 + "</a></li>" +
15
- "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h2'>" + locale.font_styles.h2 + "</a></li>" +
16
- "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h3'>" + locale.font_styles.h3 + "</a></li>" +
17
- "</ul>" +
18
- "</li>",
19
-
20
- "emphasis":
21
- "<li>" +
22
- "<div class='btn-group'>" +
23
- "<a class='btn' data-wysihtml5-command='bold' title='CTRL+B'>" + locale.emphasis.bold + "</a>" +
24
- "<a class='btn' data-wysihtml5-command='italic' title='CTRL+I'>" + locale.emphasis.italic + "</a>" +
25
- "<a class='btn' data-wysihtml5-command='underline' title='CTRL+U'>" + locale.emphasis.underline + "</a>" +
26
- "</div>" +
27
- "</li>",
28
-
29
- "lists":
30
- "<li>" +
31
- "<div class='btn-group'>" +
32
- "<a class='btn' data-wysihtml5-command='insertUnorderedList' title='" + locale.lists.unordered + "'><i class='icon-list'></i></a>" +
33
- "<a class='btn' data-wysihtml5-command='insertOrderedList' title='" + locale.lists.ordered + "'><i class='icon-th-list'></i></a>" +
34
- "<a class='btn' data-wysihtml5-command='Outdent' title='" + locale.lists.outdent + "'><i class='icon-indent-right'></i></a>" +
35
- "<a class='btn' data-wysihtml5-command='Indent' title='" + locale.lists.indent + "'><i class='icon-indent-left'></i></a>" +
36
- "</div>" +
37
- "</li>",
38
-
39
- "link":
40
- "<li>" +
41
- "<div class='bootstrap-wysihtml5-insert-link-modal modal hide fade'>" +
42
- "<div class='modal-header'>" +
43
- "<a class='close' data-dismiss='modal'>&times;</a>" +
44
- "<h3>" + locale.link.insert + "</h3>" +
45
- "</div>" +
46
- "<div class='modal-body'>" +
47
- "<input value='http://' class='bootstrap-wysihtml5-insert-link-url input-xlarge'>" +
48
- "</div>" +
49
- "<div class='modal-footer'>" +
50
- "<a href='#' class='btn' data-dismiss='modal'>" + locale.link.cancel + "</a>" +
51
- "<a href='#' class='btn btn-primary' data-dismiss='modal'>" + locale.link.insert + "</a>" +
52
- "</div>" +
53
- "</div>" +
54
- "<a class='btn' data-wysihtml5-command='createLink' title='" + locale.link.insert + "'><i class='icon-share'></i></a>" +
55
- "</li>",
56
-
57
- "image":
58
- "<li>" +
59
- "<div class='bootstrap-wysihtml5-insert-image-modal modal hide fade'>" +
60
- "<div class='modal-header'>" +
61
- "<a class='close' data-dismiss='modal'>&times;</a>" +
62
- "<h3>" + locale.image.insert + "</h3>" +
63
- "</div>" +
64
- "<div class='modal-body'>" +
65
- "<input value='http://' class='bootstrap-wysihtml5-insert-image-url input-xlarge'>" +
66
- "</div>" +
67
- "<div class='modal-footer'>" +
68
- "<a href='#' class='btn' data-dismiss='modal'>" + locale.image.cancel + "</a>" +
69
- "<a href='#' class='btn btn-primary' data-dismiss='modal'>" + locale.image.insert + "</a>" +
70
- "</div>" +
71
- "</div>" +
72
- "<a class='btn' data-wysihtml5-command='insertImage' title='" + locale.image.insert + "'><i class='icon-picture'></i></a>" +
73
- "</li>",
74
-
75
- "html":
76
- "<li>" +
77
- "<div class='btn-group'>" +
78
- "<a class='btn' data-wysihtml5-action='change_view' title='" + locale.html.edit + "'><i class='icon-pencil'></i></a>" +
79
- "</div>" +
80
- "</li>",
81
-
82
- "color":
83
- "<li class='dropdown'>" +
84
- "<a class='btn dropdown-toggle' data-toggle='dropdown' href='#'>" +
85
- "<span class='current-color'>" + locale.colours.black + "</span>&nbsp;<b class='caret'></b>" +
86
- "</a>" +
87
- "<ul class='dropdown-menu'>" +
88
- "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='black'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='black'>" + locale.colours.black + "</a></li>" +
89
- "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='silver'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='silver'>" + locale.colours.silver + "</a></li>" +
90
- "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='gray'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='gray'>" + locale.colours.gray + "</a></li>" +
91
- "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='maroon'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='maroon'>" + locale.colours.maroon + "</a></li>" +
92
- "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='red'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='red'>" + locale.colours.red + "</a></li>" +
93
- "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='purple'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='purple'>" + locale.colours.purple + "</a></li>" +
94
- "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='green'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='green'>" + locale.colours.green + "</a></li>" +
95
- "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='olive'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='olive'>" + locale.colours.olive + "</a></li>" +
96
- "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='navy'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='navy'>" + locale.colours.navy + "</a></li>" +
97
- "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='blue'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='blue'>" + locale.colours.blue + "</a></li>" +
98
- "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='orange'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='orange'>" + locale.colours.orange + "</a></li>" +
99
- "</ul>" +
100
- "</li>"
101
- };
102
- return tpl[key];
78
+ "html": function(locale) {
79
+ return "<li>" +
80
+ "<div class='btn-group'>" +
81
+ "<a class='btn' data-wysihtml5-action='change_view' title='" + locale.html.edit + "'><i class='icon-pencil'></i></a>" +
82
+ "</div>" +
83
+ "</li>";
84
+ },
85
+
86
+ "color": function(locale) {
87
+ return "<li class='dropdown'>" +
88
+ "<a class='btn dropdown-toggle' data-toggle='dropdown' href='#'>" +
89
+ "<span class='current-color'>" + locale.colours.black + "</span>&nbsp;<b class='caret'></b>" +
90
+ "</a>" +
91
+ "<ul class='dropdown-menu'>" +
92
+ "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='black'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='black'>" + locale.colours.black + "</a></li>" +
93
+ "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='silver'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='silver'>" + locale.colours.silver + "</a></li>" +
94
+ "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='gray'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='gray'>" + locale.colours.gray + "</a></li>" +
95
+ "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='maroon'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='maroon'>" + locale.colours.maroon + "</a></li>" +
96
+ "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='red'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='red'>" + locale.colours.red + "</a></li>" +
97
+ "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='purple'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='purple'>" + locale.colours.purple + "</a></li>" +
98
+ "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='green'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='green'>" + locale.colours.green + "</a></li>" +
99
+ "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='olive'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='olive'>" + locale.colours.olive + "</a></li>" +
100
+ "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='navy'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='navy'>" + locale.colours.navy + "</a></li>" +
101
+ "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='blue'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='blue'>" + locale.colours.blue + "</a></li>" +
102
+ "<li><div class='wysihtml5-colors' data-wysihtml5-command-value='orange'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='orange'>" + locale.colours.orange + "</a></li>" +
103
+ "</ul>" +
104
+ "</li>";
105
+ }
106
+ };
107
+
108
+ var templates = function(key, locale) {
109
+ return tpl[key](locale);
103
110
  };
104
111
 
105
112
 
106
113
  var Wysihtml5 = function(el, options) {
107
114
  this.el = el;
108
- this.toolbar = this.createToolbar(el, options || defaultOptions);
115
+ var toolbarOpts = options || defaultOptions;
116
+ for(var t in toolbarOpts.customTemplates) {
117
+ tpl[t] = toolbarOpts.customTemplates[t];
118
+ }
119
+ this.toolbar = this.createToolbar(el, toolbarOpts);
109
120
  this.editor = this.createEditor(options);
110
121
 
111
122
  window.editor = this.editor;
@@ -212,6 +223,7 @@
212
223
  var insertImage = function() {
213
224
  var url = urlInput.val();
214
225
  urlInput.val(initialValue);
226
+ self.editor.currentView.element.focus();
215
227
  self.editor.composer.commands.exec("insertImage", url);
216
228
  };
217
229
 
@@ -258,6 +270,7 @@
258
270
  var insertLink = function() {
259
271
  var url = urlInput.val();
260
272
  urlInput.val(initialValue);
273
+ self.editor.currentView.element.focus();
261
274
  self.editor.composer.commands.exec("createLink", {
262
275
  href: url,
263
276
  target: "_blank",
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Catalan translation for bootstrap-wysihtml5
3
+ */
4
+ (function($){
5
+ $.fn.wysihtml5.locale["ca-CT"] = {
6
+ font_styles: {
7
+ normal: "Text normal",
8
+ h1: "Títol 1",
9
+ h2: "Títol 2"
10
+ },
11
+ emphasis: {
12
+ bold: "Negreta",
13
+ italic: "Cursiva",
14
+ underline: "Subratllat"
15
+ },
16
+ lists: {
17
+ unordered: "Llista desordenada",
18
+ ordered: "Llista ordenada",
19
+ outdent: "Esborrar tabulació",
20
+ indent: "Afegir tabulació"
21
+ },
22
+ link: {
23
+ insert: "Afegir enllaç",
24
+ cancel: "Cancelar"
25
+ },
26
+ image: {
27
+ insert: "Afegir imatge",
28
+ cancel: "Cancelar"
29
+ },
30
+ html: {
31
+ edit: "Editar HTML"
32
+ },
33
+ colours: {
34
+ black: "Negre",
35
+ silver: "Plata",
36
+ gray: "Gris",
37
+ maroon: "Marró",
38
+ red: "Vermell",
39
+ purple: "Porpre",
40
+ green: "Verd",
41
+ olive: "Oliva",
42
+ navy: "Blau marí",
43
+ blue: "Blau",
44
+ orange: "Taronja"
45
+ }
46
+ };
47
+ }(jQuery));
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Greek translation for bootstrap-wysihtml5
3
+ */
4
+ (function($){
5
+ $.fn.wysihtml5.locale["el-GR"] = {
6
+ font_styles: {
7
+ normal: "Απλό κείμενο",
8
+ h1: "Κεφαλίδα 1",
9
+ h2: "Κεφαλίδα 2",
10
+ h3: "Κεφαλίδα 3"
11
+ },
12
+ emphasis: {
13
+ bold: "B",
14
+ italic: "I",
15
+ underline: "U"
16
+ },
17
+ lists: {
18
+ unordered: "Λίστα με κουκκίδες",
19
+ ordered: "Αριθμημένη λίστα",
20
+ outdent: "Μείωση εσοχής",
21
+ indent: "Αύξηση εσοχής"
22
+ },
23
+ link: {
24
+ insert: "Εισαγωγή Συνδέσμου",
25
+ cancel: "Άκυρο"
26
+ },
27
+ image: {
28
+ insert: "Εισαγωγή Εικόνας",
29
+ cancel: "Άκυρο"
30
+ },
31
+ html: {
32
+ edit: "Επεξεργασία HTML"
33
+ },
34
+ colours: {
35
+ black: "Μαύρο",
36
+ silver: "Ασημί",
37
+ gray: "Γκρι",
38
+ maroon: "Καφέ",
39
+ red: "Κόκκινο",
40
+ purple: "Μωβ",
41
+ green: "Πράσινο",
42
+ olive: "Λαδί",
43
+ navy: "Βαθύ Μπλε",
44
+ blue: "Μπλε",
45
+ orange: "Πορτοκαλί"
46
+ }
47
+ };
48
+ }(jQuery));
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Spanish Argenina translation for bootstrap-wysihtml5
3
+ */
4
+
5
+ (function($){
6
+ $.fn.wysihtml5.locale["es-AR"] = {
7
+ font_styles: {
8
+ normal: "Texto normal",
9
+ h1: "Título 1",
10
+ h2: "Título 2",
11
+ h3: "Título 3"
12
+ },
13
+ emphasis: {
14
+ bold: "Negrita",
15
+ italic: "Itálica",
16
+ underline: "Subrayado"
17
+ },
18
+ lists: {
19
+ ordered: "Lista ordenada",
20
+ unordered: "Lista desordenada",
21
+ indent: "Agregar sangría",
22
+ outdent: "Eliminar sangría"
23
+ },
24
+ link: {
25
+ insert: "Insertar enlace",
26
+ cancel: "Cancelar"
27
+ },
28
+ image: {
29
+ insert: "Insertar imágen",
30
+ cancel: "Cancelar"
31
+ },
32
+ html: {
33
+ edit: "Editar HTML"
34
+ },
35
+ colours: {
36
+ black: "Negro",
37
+ silver: "Plata",
38
+ gray: "Gris",
39
+ maroon: "Marrón",
40
+ red: "Rojo",
41
+ purple: "Púrpura",
42
+ green: "Verde",
43
+ olive: "Oliva",
44
+ navy: "Azul Marino",
45
+ blue: "Azul",
46
+ orange: "Naranja"
47
+ }
48
+ };
49
+ }(jQuery));
@@ -6,7 +6,8 @@
6
6
  font_styles: {
7
7
  normal: "Texto normal",
8
8
  h1: "Título 1",
9
- h2: "Título 2"
9
+ h2: "Título 2",
10
+ h3: "Título 3"
10
11
  },
11
12
  emphasis: {
12
13
  bold: "Negrita",
@@ -20,15 +21,28 @@
20
21
  indent: "Agregar sangría"
21
22
  },
22
23
  link: {
23
- insert: "Insertar link",
24
+ insert: "Insertar enlace",
24
25
  cancel: "Cancelar"
25
26
  },
26
27
  image: {
27
- insert: "Insertar imagen",
28
+ insert: "Insertar imágen",
28
29
  cancel: "Cancelar"
29
30
  },
30
31
  html: {
31
32
  edit: "Editar HTML"
33
+ },
34
+ colours: {
35
+ black: "Negro",
36
+ silver: "Plata",
37
+ gray: "Gris",
38
+ maroon: "Marrón",
39
+ red: "Rojo",
40
+ purple: "Púrpura",
41
+ green: "Verde",
42
+ olive: "Oliva",
43
+ navy: "Azul Marino",
44
+ blue: "Azul",
45
+ orange: "Naranja"
32
46
  }
33
47
  };
34
- }(jQuery));
48
+ }(jQuery));
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Italian translation for bootstrap-wysihtml5
3
+ */
4
+ (function($){
5
+ $.fn.wysihtml5.locale["it-IT"] = {
6
+ font_styles: {
7
+ normal: "Testo normale",
8
+ h1: "Titolo 1",
9
+ h2: "Titolo 2"
10
+ },
11
+ emphasis: {
12
+ bold: "Grassetto",
13
+ italic: "Corsivo",
14
+ underline: "Sottolineato"
15
+ },
16
+ lists: {
17
+ unordered: "Lista non ordinata",
18
+ ordered: "Lista ordinata",
19
+ outdent: "Elimina rientro",
20
+ indent: "Aggiungi rientro"
21
+ },
22
+ link: {
23
+ insert: "Inserisci link",
24
+ cancel: "Annulla"
25
+ },
26
+ image: {
27
+ insert: "Inserisci immagine",
28
+ cancel: "Annulla"
29
+ },
30
+ html: {
31
+ edit: "Modifica HTML"
32
+ },
33
+ colours: {
34
+ black: "Nero",
35
+ silver: "Argento",
36
+ gray: "Grigio",
37
+ maroon: "Marrone",
38
+ red: "Rosso",
39
+ purple: "Viola",
40
+ green: "Verde",
41
+ olive: "Oliva",
42
+ navy: "Blu Marino",
43
+ blue: "Blu",
44
+ orange: "Arancio"
45
+ }
46
+ };
47
+ }(jQuery));
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Japanese translation for bootstrap-wysihtml5
3
+ */
4
+ (function($){
5
+ $.fn.wysihtml5.locale["ja-JP"] = {
6
+ font_styles: {
7
+ normal: "通常の文字",
8
+ h1: "見出し1",
9
+ h2: "見出し2",
10
+ h3: "見出し3"
11
+ },
12
+ emphasis: {
13
+ bold: "太字",
14
+ italic: "斜体",
15
+ underline: "下線"
16
+ },
17
+ lists: {
18
+ unordered: "点字リスト",
19
+ ordered: "数字リスト",
20
+ outdent: "左寄せ",
21
+ indent: "右寄せ"
22
+ },
23
+ link: {
24
+ insert: "リンクの挿入",
25
+ cancel: "キャンセル"
26
+ },
27
+ image: {
28
+ insert: "画像の挿入",
29
+ cancel: "キャンセル"
30
+ },
31
+ html: {
32
+ edit: "HTMLを編集"
33
+ },
34
+ colours: {
35
+ black: "黒色",
36
+ silver: "シルバー",
37
+ gray: "グレー",
38
+ maroon: "栗色",
39
+ red: "赤色",
40
+ purple: "紫色",
41
+ green: "緑色",
42
+ olive: "オリーブ",
43
+ navy: "ネイビー",
44
+ blue: "青色",
45
+ orange: "オレンジ"
46
+ }
47
+
48
+ };
49
+ }(jQuery));
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Lithuanian translation for bootstrap-wysihtml5
3
+ */
4
+ (function($){
5
+ $.fn.wysihtml5.locale["lt-LT"] = {
6
+ font_styles: {
7
+ normal: "Normalus",
8
+ h1: "Antraštė 1",
9
+ h2: "Antraštė 2",
10
+ h3: "Antraštė 3"
11
+ },
12
+ emphasis: {
13
+ bold: "Pastorintas",
14
+ italic: "Kursyvas",
15
+ underline: "Pabrauktas"
16
+ },
17
+ lists: {
18
+ unordered: "Suženklintas sąrašas",
19
+ ordered: "Numeruotas sąrašas",
20
+ outdent: "Padidinti įtrauką",
21
+ indent: "Sumažinti įtrauką"
22
+ },
23
+ link: {
24
+ insert: "Įterpti nuorodą",
25
+ cancel: "Atšaukti"
26
+ },
27
+ image: {
28
+ insert: "Įterpti atvaizdą",
29
+ cancel: "Atšaukti"
30
+ },
31
+ html: {
32
+ edit: "Redaguoti HTML"
33
+ },
34
+ colours: {
35
+ black: "Juoda",
36
+ silver: "Sidabrinė",
37
+ gray: "Pilka",
38
+ maroon: "Kaštoninė",
39
+ red: "Raudona",
40
+ purple: "Violetinė",
41
+ green: "Žalia",
42
+ olive: "Gelsvai žalia",
43
+ navy: "Tamsiai mėlyna",
44
+ blue: "Mėlyna",
45
+ orange: "Oranžinė"
46
+ }
47
+ };
48
+ }(jQuery));
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Moldavian translation for bootstrap-wysihtml5
3
+ */
4
+ (function($){
5
+ $.fn.wysihtml5.locale["mo-MD"] = {
6
+ font_styles: {
7
+ normal: "Normal",
8
+ h1: "Titlu 1",
9
+ h2: "Titlu 2"
10
+ },
11
+ emphasis: {
12
+ bold: "Bold",
13
+ italic: "Cursiv",
14
+ underline: "Accentuat"
15
+ },
16
+ lists: {
17
+ unordered: "Neordonata",
18
+ ordered: "Ordonata",
19
+ outdent: "Margine",
20
+ indent: "zimțuire"
21
+ },
22
+ link: {
23
+ insert: "Indroduce link-ul",
24
+ cancel: "Anula"
25
+ },
26
+ image: {
27
+ insert: "Insera imagina",
28
+ cancel: "Anula"
29
+ },
30
+ html: {
31
+ edit: "Editare HTML"
32
+ },
33
+
34
+ colours: {
35
+ black: "Negru",
36
+ silver: "Argint",
37
+ gray: "Gri",
38
+ maroon: "Castaniu",
39
+ red: "Roșu",
40
+ purple: "Violet",
41
+ green: "Verde",
42
+ olive: "Oliv",
43
+ navy: "Marin",
44
+ blue: "Albastru",
45
+ orange: "Portocaliu"
46
+ }
47
+ };
48
+ }(jQuery));
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-wysihtml5-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1.9
4
+ version: 0.3.1.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-21 00:00:00.000000000 Z
12
+ date: 2012-11-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -148,11 +148,18 @@ files:
148
148
  - testapp/vendor/plugins/.gitkeep
149
149
  - vendor/assets/javascripts/bootstrap-wysihtml5/core.js
150
150
  - vendor/assets/javascripts/bootstrap-wysihtml5/index.js
151
+ - vendor/assets/javascripts/bootstrap-wysihtml5/locales/ca-CT.js
151
152
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/de-DE.js
153
+ - vendor/assets/javascripts/bootstrap-wysihtml5/locales/el-GR.js
154
+ - vendor/assets/javascripts/bootstrap-wysihtml5/locales/es-AR.js
152
155
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/es-ES.js
153
156
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/fr-FR.js
154
157
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/fr-NL.js
155
158
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/index.js
159
+ - vendor/assets/javascripts/bootstrap-wysihtml5/locales/it-IT.js
160
+ - vendor/assets/javascripts/bootstrap-wysihtml5/locales/ja-JP.js
161
+ - vendor/assets/javascripts/bootstrap-wysihtml5/locales/lt-LT.js
162
+ - vendor/assets/javascripts/bootstrap-wysihtml5/locales/mo-MD.js
156
163
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/pt-BR.js
157
164
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/ru-RU.js
158
165
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/sv-SE.js
@@ -174,7 +181,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
174
181
  version: '0'
175
182
  segments:
176
183
  - 0
177
- hash: 931587402031655568
184
+ hash: -1143890278141514696
178
185
  required_rubygems_version: !ruby/object:Gem::Requirement
179
186
  none: false
180
187
  requirements:
@@ -183,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
190
  version: '0'
184
191
  segments:
185
192
  - 0
186
- hash: 931587402031655568
193
+ hash: -1143890278141514696
187
194
  requirements: []
188
195
  rubyforge_project:
189
196
  rubygems_version: 1.8.24