bootstrap-wysihtml5-rails 0.3.1.11 → 0.3.1.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module BootstrapWysihtml5Rails
2
2
  module Rails
3
- VERSION = "0.3.1.11"
3
+ VERSION = "0.3.1.12"
4
4
  end
5
5
  end
@@ -2,9 +2,10 @@
2
2
  "use strict";
3
3
 
4
4
  var tpl = {
5
- "font-styles": function(locale) {
5
+ "font-styles": function(locale, options) {
6
+ var size = (options && options.size) ? ' btn-'+options.size : '';
6
7
  return "<li class='dropdown'>" +
7
- "<a class='btn dropdown-toggle' data-toggle='dropdown' href='#'>" +
8
+ "<a class='btn dropdown-toggle" + size + "' data-toggle='dropdown' href='#'>" +
8
9
  "<i class='icon-font'></i>&nbsp;<span class='current-font'>" + locale.font_styles.normal + "</span>&nbsp;<b class='caret'></b>" +
9
10
  "</a>" +
10
11
  "<ul class='dropdown-menu'>" +
@@ -16,28 +17,31 @@
16
17
  "</li>";
17
18
  },
18
19
 
19
- "emphasis": function(locale) {
20
+ "emphasis": function(locale, options) {
21
+ var size = (options && options.size) ? ' btn-'+options.size : '';
20
22
  return "<li>" +
21
23
  "<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>" +
24
+ "<a class='btn" + size + "' data-wysihtml5-command='bold' title='CTRL+B'>" + locale.emphasis.bold + "</a>" +
25
+ "<a class='btn" + size + "' data-wysihtml5-command='italic' title='CTRL+I'>" + locale.emphasis.italic + "</a>" +
26
+ "<a class='btn" + size + "' data-wysihtml5-command='underline' title='CTRL+U'>" + locale.emphasis.underline + "</a>" +
25
27
  "</div>" +
26
28
  "</li>";
27
29
  },
28
30
 
29
- "lists": function(locale) {
31
+ "lists": function(locale, options) {
32
+ var size = (options && options.size) ? ' btn-'+options.size : '';
30
33
  return "<li>" +
31
34
  "<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>" +
35
+ "<a class='btn" + size + "' data-wysihtml5-command='insertUnorderedList' title='" + locale.lists.unordered + "'><i class='icon-list'></i></a>" +
36
+ "<a class='btn" + size + "' data-wysihtml5-command='insertOrderedList' title='" + locale.lists.ordered + "'><i class='icon-th-list'></i></a>" +
37
+ "<a class='btn" + size + "' data-wysihtml5-command='Outdent' title='" + locale.lists.outdent + "'><i class='icon-indent-right'></i></a>" +
38
+ "<a class='btn" + size + "' data-wysihtml5-command='Indent' title='" + locale.lists.indent + "'><i class='icon-indent-left'></i></a>" +
36
39
  "</div>" +
37
40
  "</li>";
38
41
  },
39
42
 
40
- "link": function(locale) {
43
+ "link": function(locale, options) {
44
+ var size = (options && options.size) ? ' btn-'+options.size : '';
41
45
  return "<li>" +
42
46
  "<div class='bootstrap-wysihtml5-insert-link-modal modal hide fade'>" +
43
47
  "<div class='modal-header'>" +
@@ -52,11 +56,12 @@
52
56
  "<a href='#' class='btn btn-primary' data-dismiss='modal'>" + locale.link.insert + "</a>" +
53
57
  "</div>" +
54
58
  "</div>" +
55
- "<a class='btn' data-wysihtml5-command='createLink' title='" + locale.link.insert + "'><i class='icon-share'></i></a>" +
59
+ "<a class='btn" + size + "' data-wysihtml5-command='createLink' title='" + locale.link.insert + "'><i class='icon-share'></i></a>" +
56
60
  "</li>";
57
61
  },
58
62
 
59
- "image": function(locale) {
63
+ "image": function(locale, options) {
64
+ var size = (options && options.size) ? ' btn-'+options.size : '';
60
65
  return "<li>" +
61
66
  "<div class='bootstrap-wysihtml5-insert-image-modal modal hide fade'>" +
62
67
  "<div class='modal-header'>" +
@@ -71,21 +76,23 @@
71
76
  "<a href='#' class='btn btn-primary' data-dismiss='modal'>" + locale.image.insert + "</a>" +
72
77
  "</div>" +
73
78
  "</div>" +
74
- "<a class='btn' data-wysihtml5-command='insertImage' title='" + locale.image.insert + "'><i class='icon-picture'></i></a>" +
79
+ "<a class='btn" + size + "' data-wysihtml5-command='insertImage' title='" + locale.image.insert + "'><i class='icon-picture'></i></a>" +
75
80
  "</li>";
76
81
  },
77
82
 
78
- "html": function(locale) {
83
+ "html": function(locale, options) {
84
+ var size = (options && options.size) ? ' btn-'+options.size : '';
79
85
  return "<li>" +
80
86
  "<div class='btn-group'>" +
81
- "<a class='btn' data-wysihtml5-action='change_view' title='" + locale.html.edit + "'><i class='icon-pencil'></i></a>" +
87
+ "<a class='btn" + size + "' data-wysihtml5-action='change_view' title='" + locale.html.edit + "'><i class='icon-pencil'></i></a>" +
82
88
  "</div>" +
83
89
  "</li>";
84
90
  },
85
91
 
86
- "color": function(locale) {
92
+ "color": function(locale, options) {
93
+ var size = (options && options.size) ? ' btn-'+options.size : '';
87
94
  return "<li class='dropdown'>" +
88
- "<a class='btn dropdown-toggle' data-toggle='dropdown' href='#'>" +
95
+ "<a class='btn dropdown-toggle" + size + "' data-toggle='dropdown' href='#'>" +
89
96
  "<span class='current-color'>" + locale.colours.black + "</span>&nbsp;<b class='caret'></b>" +
90
97
  "</a>" +
91
98
  "<ul class='dropdown-menu'>" +
@@ -105,8 +112,8 @@
105
112
  }
106
113
  };
107
114
 
108
- var templates = function(key, locale) {
109
- return tpl[key](locale);
115
+ var templates = function(key, locale, options) {
116
+ return tpl[key](locale, options);
110
117
  };
111
118
 
112
119
 
@@ -167,7 +174,7 @@
167
174
  }
168
175
 
169
176
  if(value === true) {
170
- toolbar.append(templates(key, locale[culture]));
177
+ toolbar.append(templates(key, locale[culture], options));
171
178
 
172
179
  if(key === "html") {
173
180
  this.initHtml(toolbar);
@@ -379,7 +386,7 @@
379
386
  "wysiwyg-color-blue" : 1,
380
387
  "wysiwyg-color-teal" : 1,
381
388
  "wysiwyg-color-aqua" : 1,
382
- "wysiwyg-color-orange" : 1,
389
+ "wysiwyg-color-orange" : 1
383
390
  },
384
391
  tags: {
385
392
  "b": {},
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Czech translation for bootstrap-wysihtml5
3
+ */
4
+ (function($){
5
+ $.fn.wysihtml5.locale["cs-CZ"] = {
6
+ font_styles: {
7
+ normal: "Normální text",
8
+ h1: "Nadpis úrovně 1",
9
+ h2: "Nadpis úrovně 2",
10
+ h3: "Nadpis úrovně 3"
11
+ },
12
+ emphasis: {
13
+ bold: "Tučné",
14
+ italic: "Kurzíva",
15
+ underline: "Podtržení"
16
+ },
17
+ lists: {
18
+ unordered: "Seznam s odrážkami",
19
+ ordered: "Číslovaný seznam",
20
+ outdent: "Zvětšit odsazení",
21
+ indent: "Zmenšit odsazení"
22
+ },
23
+ link: {
24
+ insert: "Vložit odkaz",
25
+ cancel: "Zrušit"
26
+ },
27
+ image: {
28
+ insert: "Vložit obrázek",
29
+ cancel: "Zrušit"
30
+ },
31
+ html: {
32
+ edit: "Upravit HTML"
33
+ },
34
+ colours: {
35
+ black: "Černá",
36
+ silver: "Stříbrná",
37
+ gray: "Šedá",
38
+ maroon: "Vínová",
39
+ red: "Červená",
40
+ purple: "Fialová",
41
+ green: "Zelená",
42
+ olive: "Olivová",
43
+ navy: "Tmavomodrá",
44
+ blue: "Modrá",
45
+ orange: "Oranžová"
46
+ }
47
+ };
48
+ }(jQuery));
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Croatian localisation for bootstrap-wysihtml5
3
+ */
4
+ (function($){
5
+ $.fn.wysihtml5.locale["hr-HR"] = {
6
+ font_styles: {
7
+ normal: "Normalan tekst",
8
+ h1: "Naslov 1",
9
+ h2: "Naslov 2",
10
+ h3: "Naslov 3"
11
+ },
12
+ emphasis: {
13
+ bold: "Podebljano",
14
+ italic: "Nakrivljeno",
15
+ underline: "Podcrtano"
16
+ },
17
+ lists: {
18
+ unordered: "Nesortirana lista",
19
+ ordered: "Sortirana lista",
20
+ outdent: "Izdubi",
21
+ indent: "Udubi"
22
+ },
23
+ link: {
24
+ insert: "Umetni poveznicu",
25
+ cancel: "Otkaži"
26
+ },
27
+ image: {
28
+ insert: "Umetni sliku",
29
+ cancel: "Otkaži"
30
+ },
31
+ html: {
32
+ edit: "Izmjeni HTML"
33
+ },
34
+ colours: {
35
+ black: "Crna",
36
+ silver: "Srebrna",
37
+ gray: "Siva",
38
+ maroon: "Kestenjasta",
39
+ red: "Crvena",
40
+ purple: "Ljubičasta",
41
+ green: "Zelena",
42
+ olive: "Maslinasta",
43
+ navy: "Mornarska",
44
+ blue: "Plava",
45
+ orange: "Narandžasta"
46
+ }
47
+ };
48
+ }(jQuery));
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Norwegian translation for bootstrap-wysihtml5
3
+ */
4
+ (function($){
5
+ $.fn.wysihtml5.locale["nb-NB"] = {
6
+ font_styles: {
7
+ normal: "Normal tekst",
8
+ h1: "Tittel 1",
9
+ h2: "Tittel 2",
10
+ h3: "Tittel 3"
11
+ },
12
+ emphasis: {
13
+ bold: "Fet",
14
+ italic: "Kursiv",
15
+ underline: "Understrekning"
16
+ },
17
+ lists: {
18
+ unordered: "Usortert",
19
+ ordered: "Sortert",
20
+ outdent: "Detabuler",
21
+ indent: "Tabuler",
22
+ indered: "Tabuler"
23
+ },
24
+ link: {
25
+ insert: "Sett inn lenke",
26
+ cancel: "Avbryt"
27
+ },
28
+ image: {
29
+ insert: "Sett inn bilde",
30
+ cancel: "Avbryt"
31
+ },
32
+ html: {
33
+ edit: "Rediger HTML"
34
+ },
35
+ colours: {
36
+ black: "Svart",
37
+ silver: "Sølv",
38
+ gray: "Grå",
39
+ maroon: "Brun",
40
+ red: "Rød",
41
+ purple: "Lilla",
42
+ green: "Grønn",
43
+ olive: "Oliven",
44
+ navy: "Marineblå",
45
+ blue: "Blå",
46
+ orange: "Oransj"
47
+ }
48
+ };
49
+ ø(jQuery));
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Polish translation for bootstrap-wysihtml5
3
+ */
4
+ (function($){
5
+ $.fn.wysihtml5.locale["pl-PL"] = {
6
+ font_styles: {
7
+ normal: "Tekst podstawowy",
8
+ h1: "Nagłówek 1",
9
+ h2: "Nagłówek 2",
10
+ h3: "Nagłówek 3"
11
+ },
12
+ emphasis: {
13
+ bold: "Pogrubienie",
14
+ italic: "Kursywa",
15
+ underline: "Podkreślenie"
16
+ },
17
+ lists: {
18
+ unordered: "Lista wypunktowana",
19
+ ordered: "Lista numerowana",
20
+ outdent: "Zwiększ wcięcie",
21
+ indent: "Zmniejsz wcięcie"
22
+ },
23
+ link: {
24
+ insert: "Wstaw odnośnik",
25
+ cancel: "Anuluj"
26
+ },
27
+ image: {
28
+ insert: "Wstaw obrazek",
29
+ cancel: "Anuluj"
30
+ },
31
+ html: {
32
+ edit: "Edycja HTML"
33
+ },
34
+ colours: {
35
+ black: "Czarny",
36
+ silver: "Srebrny",
37
+ gray: "Szary",
38
+ maroon: "Kasztanowy",
39
+ red: "Czerwony",
40
+ purple: "Fioletowy",
41
+ green: "Zielony",
42
+ olive: "Oliwkowy",
43
+ navy: "Granatowy",
44
+ blue: "Niebieski",
45
+ orange: "Pomarańczowy"
46
+ }
47
+ };
48
+ }(jQuery));
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Slovak translation for bootstrap-wysihtml5
3
+ */
4
+ (function($){
5
+ $.fn.wysihtml5.locale["sk-SK"] = {
6
+ font_styles: {
7
+ normal: "Normálny text",
8
+ h1: "Nadpis úrovne 1",
9
+ h2: "Nadpis úrovne 2",
10
+ h3: "Nadpis úrovne 3"
11
+ },
12
+ emphasis: {
13
+ bold: "Tučné",
14
+ italic: "Kurzíva",
15
+ underline: "Podčiarknuté"
16
+ },
17
+ lists: {
18
+ unordered: "Neusporiadaný zoznam",
19
+ ordered: "Číslovaný zoznam",
20
+ outdent: "Zväčšiť odsadenie",
21
+ indent: "Zmenšiť odsadenie"
22
+ },
23
+ link: {
24
+ insert: "Vložiť odkaz",
25
+ cancel: "Zrušiť"
26
+ },
27
+ image: {
28
+ insert: "Vložiť obrázok",
29
+ cancel: "Zrušiť"
30
+ },
31
+ html: {
32
+ edit: "Editovať HTML"
33
+ },
34
+ colours: {
35
+ black: "Čierna",
36
+ silver: "Strieborná",
37
+ gray: "Šedá",
38
+ maroon: "Bordová",
39
+ red: "Červená",
40
+ purple: "Fialová",
41
+ green: "Zelená",
42
+ olive: "Olivová",
43
+ navy: "Tmavomodrá",
44
+ blue: "Modrá",
45
+ orange: "Oranžová"
46
+ }
47
+ };
48
+ }(jQuery));
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Chinese translation for bootstrap-wysihtml5
3
+ */
4
+ (function($){
5
+ $.fn.wysihtml5.locale["zh-CN"] = {
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
+ }(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.11
4
+ version: 0.3.1.12
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-11-28 00:00:00.000000000 Z
12
+ date: 2012-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -84,8 +84,6 @@ files:
84
84
  - testapp/app/assets/javascripts/application.js
85
85
  - testapp/app/assets/javascripts/home.js.coffee
86
86
  - testapp/app/assets/stylesheets/application.css
87
- - testapp/app/assets/stylesheets/home.css.scss
88
- - testapp/app/assets/stylesheets/wysiwyg-color.css
89
87
  - testapp/app/controllers/application_controller.rb
90
88
  - testapp/app/controllers/home_controller.rb
91
89
  - testapp/app/helpers/application_helper.rb
@@ -149,21 +147,27 @@ files:
149
147
  - vendor/assets/javascripts/bootstrap-wysihtml5/core.js.erb
150
148
  - vendor/assets/javascripts/bootstrap-wysihtml5/index.js
151
149
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/ca-CT.js
150
+ - vendor/assets/javascripts/bootstrap-wysihtml5/locales/cs-CZ.js
152
151
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/de-DE.js
153
152
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/el-GR.js
154
153
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/es-AR.js
155
154
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/es-ES.js
156
155
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/fr-FR.js
157
156
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/fr-NL.js
157
+ - vendor/assets/javascripts/bootstrap-wysihtml5/locales/hr-HR.js
158
158
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/index.js
159
159
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/it-IT.js
160
160
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/ja-JP.js
161
161
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/lt-LT.js
162
162
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/mo-MD.js
163
+ - vendor/assets/javascripts/bootstrap-wysihtml5/locales/nb-NB.js
163
164
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/nl-NL.js
165
+ - vendor/assets/javascripts/bootstrap-wysihtml5/locales/pl-PL.js
164
166
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/pt-BR.js
165
167
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/ru-RU.js
168
+ - vendor/assets/javascripts/bootstrap-wysihtml5/locales/sk-SK.js
166
169
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/sv-SE.js
170
+ - vendor/assets/javascripts/bootstrap-wysihtml5/locales/zh-CN.js
167
171
  - vendor/assets/javascripts/bootstrap-wysihtml5/wysihtml5.js
168
172
  - vendor/assets/stylesheets/bootstrap-wysihtml5/core.css
169
173
  - vendor/assets/stylesheets/bootstrap-wysihtml5/index.css
@@ -182,7 +186,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
182
186
  version: '0'
183
187
  segments:
184
188
  - 0
185
- hash: 638394545329125892
189
+ hash: 3757123862769366871
186
190
  required_rubygems_version: !ruby/object:Gem::Requirement
187
191
  none: false
188
192
  requirements:
@@ -191,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
195
  version: '0'
192
196
  segments:
193
197
  - 0
194
- hash: 638394545329125892
198
+ hash: 3757123862769366871
195
199
  requirements: []
196
200
  rubyforge_project:
197
201
  rubygems_version: 1.8.24
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the home controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,12 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
10
- *
11
- *= require bootstrap-wysihtml5/wysiwyg-color
12
- */