bootstrap-wysihtml5-rails 0.3.1.17 → 0.3.1.19

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.
@@ -1,5 +1,5 @@
1
1
  module BootstrapWysihtml5Rails
2
2
  module Rails
3
- VERSION = "0.3.1.17"
3
+ VERSION = "0.3.1.19"
4
4
  end
5
5
  end
@@ -9,10 +9,10 @@
9
9
  "<i class='icon-font'></i>&nbsp;<span class='current-font'>" + locale.font_styles.normal + "</span>&nbsp;<b class='caret'></b>" +
10
10
  "</a>" +
11
11
  "<ul class='dropdown-menu'>" +
12
- "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='div'>" + locale.font_styles.normal + "</a></li>" +
13
- "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h1'>" + locale.font_styles.h1 + "</a></li>" +
14
- "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h2'>" + locale.font_styles.h2 + "</a></li>" +
15
- "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h3'>" + locale.font_styles.h3 + "</a></li>" +
12
+ "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='div' tabindex='-1'>" + locale.font_styles.normal + "</a></li>" +
13
+ "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h1' tabindex='-1'>" + locale.font_styles.h1 + "</a></li>" +
14
+ "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h2' tabindex='-1'>" + locale.font_styles.h2 + "</a></li>" +
15
+ "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h3' tabindex='-1'>" + locale.font_styles.h3 + "</a></li>" +
16
16
  "</ul>" +
17
17
  "</li>";
18
18
  },
@@ -21,9 +21,9 @@
21
21
  var size = (options && options.size) ? ' btn-'+options.size : '';
22
22
  return "<li>" +
23
23
  "<div class='btn-group'>" +
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>" +
24
+ "<a class='btn" + size + "' data-wysihtml5-command='bold' title='CTRL+B' tabindex='-1'>" + locale.emphasis.bold + "</a>" +
25
+ "<a class='btn" + size + "' data-wysihtml5-command='italic' title='CTRL+I' tabindex='-1'>" + locale.emphasis.italic + "</a>" +
26
+ "<a class='btn" + size + "' data-wysihtml5-command='underline' title='CTRL+U' tabindex='-1'>" + locale.emphasis.underline + "</a>" +
27
27
  "</div>" +
28
28
  "</li>";
29
29
  },
@@ -32,10 +32,10 @@
32
32
  var size = (options && options.size) ? ' btn-'+options.size : '';
33
33
  return "<li>" +
34
34
  "<div class='btn-group'>" +
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>" +
35
+ "<a class='btn" + size + "' data-wysihtml5-command='insertUnorderedList' title='" + locale.lists.unordered + "' tabindex='-1'><i class='icon-list'></i></a>" +
36
+ "<a class='btn" + size + "' data-wysihtml5-command='insertOrderedList' title='" + locale.lists.ordered + "' tabindex='-1'><i class='icon-th-list'></i></a>" +
37
+ "<a class='btn" + size + "' data-wysihtml5-command='Outdent' title='" + locale.lists.outdent + "' tabindex='-1'><i class='icon-indent-right'></i></a>" +
38
+ "<a class='btn" + size + "' data-wysihtml5-command='Indent' title='" + locale.lists.indent + "' tabindex='-1'><i class='icon-indent-left'></i></a>" +
39
39
  "</div>" +
40
40
  "</li>";
41
41
  },
@@ -56,7 +56,7 @@
56
56
  "<a href='#' class='btn btn-primary' data-dismiss='modal'>" + locale.link.insert + "</a>" +
57
57
  "</div>" +
58
58
  "</div>" +
59
- "<a class='btn" + size + "' 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 + "' tabindex='-1'><i class='icon-share'></i></a>" +
60
60
  "</li>";
61
61
  },
62
62
 
@@ -76,7 +76,7 @@
76
76
  "<a href='#' class='btn btn-primary' data-dismiss='modal'>" + locale.image.insert + "</a>" +
77
77
  "</div>" +
78
78
  "</div>" +
79
- "<a class='btn" + size + "' 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 + "' tabindex='-1'><i class='icon-picture'></i></a>" +
80
80
  "</li>";
81
81
  },
82
82
 
@@ -84,7 +84,7 @@
84
84
  var size = (options && options.size) ? ' btn-'+options.size : '';
85
85
  return "<li>" +
86
86
  "<div class='btn-group'>" +
87
- "<a class='btn" + size + "' 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 + "' tabindex='-1'><i class='icon-pencil'></i></a>" +
88
88
  "</div>" +
89
89
  "</li>";
90
90
  },
@@ -92,7 +92,7 @@
92
92
  "color": function(locale, options) {
93
93
  var size = (options && options.size) ? ' btn-'+options.size : '';
94
94
  return "<li class='dropdown'>" +
95
- "<a class='btn dropdown-toggle" + size + "' data-toggle='dropdown' href='#'>" +
95
+ "<a class='btn dropdown-toggle" + size + "' data-toggle='dropdown' href='#' tabindex='-1'>" +
96
96
  "<span class='current-color'>" + locale.colours.black + "</span>&nbsp;<b class='caret'></b>" +
97
97
  "</a>" +
98
98
  "<ul class='dropdown-menu'>" +
@@ -143,6 +143,10 @@
143
143
 
144
144
  createEditor: function(options) {
145
145
  options = options || {};
146
+
147
+ // Add the toolbar to a clone of the options object so multiple instances
148
+ // of the WYISYWG don't break because "toolbar" is already defined
149
+ options = $.extend(true, {}, options);
146
150
  options.toolbar = this.toolbar[0];
147
151
 
148
152
  var editor = new wysi.Editor(this.el[0], options);
@@ -262,7 +266,7 @@
262
266
  if (!activeButton) {
263
267
  self.editor.currentView.element.focus(false);
264
268
  caretBookmark = self.editor.composer.selection.getBookmark();
265
- insertImageModal.modal('show');
269
+ insertImageModal.appendTo('body').modal('show');
266
270
  insertImageModal.on('click.dismiss.modal', '[data-dismiss="modal"]', function(e) {
267
271
  e.stopPropagation();
268
272
  });
@@ -432,10 +436,13 @@
432
436
  }
433
437
  },
434
438
  "span": 1,
435
- "div": 1
439
+ "div": 1,
440
+ // to allow save and edit files with code tag hacks
441
+ "code": 1,
442
+ "pre": 1
436
443
  }
437
444
  },
438
- stylesheets: ["<%= stylesheet_path('bootstrap-wysihtml5/wysiwyg-color') %>"],
445
+ stylesheets: ["<%= Rails.configuration.assets.prefix + '/bootstrap-wysihtml5/wysiwyg-color.css' %>"], // (path_to_project/lib/css/wysiwyg-color.css)
439
446
  locale: "en"
440
447
  };
441
448
 
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Arabic translation for bootstrap-wysihtml5
3
+ */
4
+ (function($){
5
+ $.fn.wysihtml5.locale["mo-MD"] = {
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
+
35
+ colours: {
36
+ black: "أسود",
37
+ silver: "فضي",
38
+ gray: "رمادي",
39
+ maroon: "بني",
40
+ red: "أحمر",
41
+ purple: "بنفسجي",
42
+ green: "أخضر",
43
+ olive: "زيتوني",
44
+ navy: "أزرق قاتم",
45
+ blue: "أزرق نيلي",
46
+ orange: "برتقالي"
47
+ }
48
+ };
49
+ }(jQuery));
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Danish translations
3
+ */
4
+ (function($){
5
+ $.fn.wysihtml5.locale["da-DK"] = {
6
+ font_styles: {
7
+ normal: "Normal tekst",
8
+ h1: "Overskrift 1",
9
+ h2: "Overskrift 2",
10
+ h3: "Overskrift 3"
11
+ },
12
+ emphasis: {
13
+ bold: "Fed",
14
+ italic: "Kursiv",
15
+ underline: "Understreget"
16
+ },
17
+ lists: {
18
+ unordered: "Uordnet liste",
19
+ ordered: "Ordnet liste",
20
+ outdent: "Udryk",
21
+ indent: "Indryk"
22
+ },
23
+ link: {
24
+ insert: "Indsæt Link",
25
+ cancel: "Annuler"
26
+ },
27
+ image: {
28
+ insert: "Indsæt billede",
29
+ cancel: "Annuler"
30
+ },
31
+ html: {
32
+ edit: "Rediger HTML"
33
+ },
34
+ colours: {
35
+ black: "Sort",
36
+ silver: "Sølv",
37
+ gray: "Grå",
38
+ maroon: "Mørkerød",
39
+ red: "Rød",
40
+ purple: "Lilla",
41
+ green: "Grøn",
42
+ olive: "Lysegrøn",
43
+ navy: "Mørkeblå",
44
+ blue: "Blå",
45
+ orange: "Orange"
46
+ }
47
+ };
48
+ }(jQuery));
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Ukrainian translation for bootstrap-wysihtml5
3
+ */
4
+ (function($){
5
+ $.fn.wysihtml5.locale["ua-UA"] = {
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));
49
+
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.17
4
+ version: 0.3.1.19
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: 2013-01-20 00:00:00.000000000 Z
12
+ date: 2013-02-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -133,9 +133,11 @@ files:
133
133
  - testapp/vendor/plugins/.gitkeep
134
134
  - vendor/assets/javascripts/bootstrap-wysihtml5/core.js.erb
135
135
  - vendor/assets/javascripts/bootstrap-wysihtml5/index.js
136
+ - vendor/assets/javascripts/bootstrap-wysihtml5/locales/ar-AR.js
136
137
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/bg-BG.js
137
138
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/ca-CT.js
138
139
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/cs-CZ.js
140
+ - vendor/assets/javascripts/bootstrap-wysihtml5/locales/da-DK.js
139
141
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/de-DE.js
140
142
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/el-GR.js
141
143
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/es-AR.js
@@ -157,6 +159,7 @@ files:
157
159
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/sk-SK.js
158
160
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/sv-SE.js
159
161
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/tr-TR.js
162
+ - vendor/assets/javascripts/bootstrap-wysihtml5/locales/ua-UA.js
160
163
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/zh-CN.js
161
164
  - vendor/assets/javascripts/bootstrap-wysihtml5/locales/zh-TW.js
162
165
  - vendor/assets/javascripts/bootstrap-wysihtml5/wysihtml5.js
@@ -177,7 +180,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
180
  version: '0'
178
181
  segments:
179
182
  - 0
180
- hash: -2958986910667023297
183
+ hash: 1845273924155229667
181
184
  required_rubygems_version: !ruby/object:Gem::Requirement
182
185
  none: false
183
186
  requirements:
@@ -186,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
189
  version: '0'
187
190
  segments:
188
191
  - 0
189
- hash: -2958986910667023297
192
+ hash: 1845273924155229667
190
193
  requirements: []
191
194
  rubyforge_project:
192
195
  rubygems_version: 1.8.24