bootstrap-wysihtml5-rails 0.3.1.24 → 0.3.2.99

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -13
  3. data/Rakefile +13 -53
  4. data/lib/bootstrap-wysihtml5-rails/version.rb +2 -1
  5. data/vendor/assets/javascripts/bootstrap-wysihtml5/bootstrap3-wysihtml5.js +6 -0
  6. data/vendor/assets/javascripts/bootstrap-wysihtml5/index.js +1 -2
  7. data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/ar-AR.js +3 -0
  8. data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/bg-BG.js +4 -1
  9. data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/ca-CT.js +6 -2
  10. data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/cs-CZ.js +4 -1
  11. data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/da-DK.js +4 -1
  12. data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/de-DE.js +47 -44
  13. data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/en-US.js +53 -0
  14. data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/es-AR.js +48 -43
  15. data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/es-ES.js +50 -44
  16. data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/fr-FR.js +49 -45
  17. data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/hu-HU.js +52 -0
  18. data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/il-HE.js +53 -0
  19. data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/pl-PL.js +9 -5
  20. data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/pt-BR.js +8 -3
  21. data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/zh-CN.js +6 -2
  22. data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/zh-TW.js +6 -2
  23. data/vendor/assets/stylesheets/bootstrap-wysihtml5/{core.css → bootstrap3-wysihtml5.css} +14 -0
  24. data/vendor/assets/stylesheets/bootstrap-wysihtml5/index.css +1 -1
  25. metadata +7 -10
  26. data/vendor/assets/javascripts/bootstrap-wysihtml5/b3.js +0 -2
  27. data/vendor/assets/javascripts/bootstrap-wysihtml5/core-b3.js.erb +0 -522
  28. data/vendor/assets/javascripts/bootstrap-wysihtml5/core.js.erb +0 -513
  29. data/vendor/assets/javascripts/bootstrap-wysihtml5/wysihtml5.js +0 -9523
  30. data/vendor/assets/stylesheets/bootstrap-wysihtml5/b3.css +0 -3
  31. data/vendor/assets/stylesheets/bootstrap-wysihtml5/core-b3.css +0 -92
  32. data/vendor/assets/stylesheets/bootstrap-wysihtml5/wysiwyg-color.css +0 -67
@@ -1,513 +0,0 @@
1
- //= depend_on_asset "bootstrap-wysihtml5/wysiwyg-color.css"
2
-
3
- !function($, wysi) {
4
- "use strict";
5
-
6
- var tpl = {
7
- "font-styles": function(locale, options) {
8
- var size = (options && options.size) ? ' btn-'+options.size : '';
9
- return "<li class='dropdown'>" +
10
- "<a class='btn dropdown-toggle" + size + "' data-toggle='dropdown' href='#'>" +
11
- "<i class='icon-font'></i>&nbsp;<span class='current-font'>" + locale.font_styles.normal + "</span>&nbsp;<b class='caret'></b>" +
12
- "</a>" +
13
- "<ul class='dropdown-menu'>" +
14
- "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='div' tabindex='-1'>" + locale.font_styles.normal + "</a></li>" +
15
- "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h1' tabindex='-1'>" + locale.font_styles.h1 + "</a></li>" +
16
- "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h2' tabindex='-1'>" + locale.font_styles.h2 + "</a></li>" +
17
- "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h3' tabindex='-1'>" + locale.font_styles.h3 + "</a></li>" +
18
- "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h4'>" + locale.font_styles.h4 + "</a></li>" +
19
- "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h5'>" + locale.font_styles.h5 + "</a></li>" +
20
- "<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h6'>" + locale.font_styles.h6 + "</a></li>" +
21
- "</ul>" +
22
- "</li>";
23
- },
24
-
25
- "emphasis": function(locale, options) {
26
- var size = (options && options.size) ? ' btn-'+options.size : '';
27
- return "<li>" +
28
- "<div class='btn-group'>" +
29
- "<a class='btn" + size + "' data-wysihtml5-command='bold' title='CTRL+B' tabindex='-1'>" + locale.emphasis.bold + "</a>" +
30
- "<a class='btn" + size + "' data-wysihtml5-command='italic' title='CTRL+I' tabindex='-1'>" + locale.emphasis.italic + "</a>" +
31
- "<a class='btn" + size + "' data-wysihtml5-command='underline' title='CTRL+U' tabindex='-1'>" + locale.emphasis.underline + "</a>" +
32
- "</div>" +
33
- "</li>";
34
- },
35
-
36
- "lists": function(locale, options) {
37
- var size = (options && options.size) ? ' btn-'+options.size : '';
38
- return "<li>" +
39
- "<div class='btn-group'>" +
40
- "<a class='btn" + size + "' data-wysihtml5-command='insertUnorderedList' title='" + locale.lists.unordered + "' tabindex='-1'><i class='icon-list'></i></a>" +
41
- "<a class='btn" + size + "' data-wysihtml5-command='insertOrderedList' title='" + locale.lists.ordered + "' tabindex='-1'><i class='icon-th-list'></i></a>" +
42
- "<a class='btn" + size + "' data-wysihtml5-command='Outdent' title='" + locale.lists.outdent + "' tabindex='-1'><i class='icon-indent-right'></i></a>" +
43
- "<a class='btn" + size + "' data-wysihtml5-command='Indent' title='" + locale.lists.indent + "' tabindex='-1'><i class='icon-indent-left'></i></a>" +
44
- "</div>" +
45
- "</li>";
46
- },
47
-
48
- "link": function(locale, options) {
49
- var size = (options && options.size) ? ' btn-'+options.size : '';
50
- return "<li>" +
51
- "<div class='bootstrap-wysihtml5-insert-link-modal modal hide fade'>" +
52
- "<div class='modal-header'>" +
53
- "<a class='close' data-dismiss='modal'>&times;</a>" +
54
- "<h3>" + locale.link.insert + "</h3>" +
55
- "</div>" +
56
- "<div class='modal-body'>" +
57
- "<input value='http://' class='bootstrap-wysihtml5-insert-link-url input-xlarge'>" +
58
- "<label class='checkbox'> <input type='checkbox' class='bootstrap-wysihtml5-insert-link-target' checked>" + locale.link.target + "</label>" +
59
- "</div>" +
60
- "<div class='modal-footer'>" +
61
- "<a href='#' class='btn' data-dismiss='modal'>" + locale.link.cancel + "</a>" +
62
- "<a href='#' class='btn btn-primary' data-dismiss='modal'>" + locale.link.insert + "</a>" +
63
- "</div>" +
64
- "</div>" +
65
- "<a class='btn" + size + "' data-wysihtml5-command='createLink' title='" + locale.link.insert + "' tabindex='-1'><i class='icon-share'></i></a>" +
66
- "</li>";
67
- },
68
-
69
- "image": function(locale, options) {
70
- var size = (options && options.size) ? ' btn-'+options.size : '';
71
- return "<li>" +
72
- "<div class='bootstrap-wysihtml5-insert-image-modal modal hide fade'>" +
73
- "<div class='modal-header'>" +
74
- "<a class='close' data-dismiss='modal'>&times;</a>" +
75
- "<h3>" + locale.image.insert + "</h3>" +
76
- "</div>" +
77
- "<div class='modal-body'>" +
78
- "<input value='http://' class='bootstrap-wysihtml5-insert-image-url input-xlarge'>" +
79
- "</div>" +
80
- "<div class='modal-footer'>" +
81
- "<a href='#' class='btn' data-dismiss='modal'>" + locale.image.cancel + "</a>" +
82
- "<a href='#' class='btn btn-primary' data-dismiss='modal'>" + locale.image.insert + "</a>" +
83
- "</div>" +
84
- "</div>" +
85
- "<a class='btn" + size + "' data-wysihtml5-command='insertImage' title='" + locale.image.insert + "' tabindex='-1'><i class='icon-picture'></i></a>" +
86
- "</li>";
87
- },
88
-
89
- "html": function(locale, options) {
90
- var size = (options && options.size) ? ' btn-'+options.size : '';
91
- return "<li>" +
92
- "<div class='btn-group'>" +
93
- "<a class='btn" + size + "' data-wysihtml5-action='change_view' title='" + locale.html.edit + "' tabindex='-1'><i class='icon-pencil'></i></a>" +
94
- "</div>" +
95
- "</li>";
96
- },
97
-
98
- "color": function(locale, options) {
99
- var size = (options && options.size) ? ' btn-'+options.size : '';
100
- return "<li class='dropdown'>" +
101
- "<a class='btn dropdown-toggle" + size + "' data-toggle='dropdown' href='#' tabindex='-1'>" +
102
- "<span class='current-color'>" + locale.colours.black + "</span>&nbsp;<b class='caret'></b>" +
103
- "</a>" +
104
- "<ul class='dropdown-menu'>" +
105
- "<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>" +
106
- "<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>" +
107
- "<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>" +
108
- "<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>" +
109
- "<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>" +
110
- "<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>" +
111
- "<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>" +
112
- "<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>" +
113
- "<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>" +
114
- "<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>" +
115
- "<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>" +
116
- "</ul>" +
117
- "</li>";
118
- }
119
- };
120
-
121
- var templates = function(key, locale, options) {
122
- return tpl[key](locale, options);
123
- };
124
-
125
-
126
- var Wysihtml5 = function(el, options) {
127
- this.el = el;
128
- var toolbarOpts = options || defaultOptions;
129
- for(var t in toolbarOpts.customTemplates) {
130
- tpl[t] = toolbarOpts.customTemplates[t];
131
- }
132
- this.toolbar = this.createToolbar(el, toolbarOpts);
133
- this.editor = this.createEditor(options);
134
-
135
- window.editor = this.editor;
136
-
137
- $('iframe.wysihtml5-sandbox').each(function(i, el){
138
- $(el.contentWindow).off('focus.wysihtml5').on({
139
- 'focus.wysihtml5' : function(){
140
- $('li.dropdown').removeClass('open');
141
- }
142
- });
143
- });
144
- };
145
-
146
- Wysihtml5.prototype = {
147
-
148
- constructor: Wysihtml5,
149
-
150
- createEditor: function(options) {
151
- options = options || {};
152
-
153
- // Add the toolbar to a clone of the options object so multiple instances
154
- // of the WYISYWG don't break because "toolbar" is already defined
155
- options = $.extend(true, {}, options);
156
- options.toolbar = this.toolbar[0];
157
-
158
- var editor = new wysi.Editor(this.el[0], options);
159
-
160
- if(options && options.events) {
161
- for(var eventName in options.events) {
162
- editor.on(eventName, options.events[eventName]);
163
- }
164
- }
165
- return editor;
166
- },
167
-
168
- createToolbar: function(el, options) {
169
- var self = this;
170
- var toolbar = $("<ul/>", {
171
- 'class' : "wysihtml5-toolbar",
172
- 'style': "display:none"
173
- });
174
- var culture = options.locale || defaultOptions.locale || "en";
175
- for(var key in defaultOptions) {
176
- var value = false;
177
-
178
- if(options[key] !== undefined) {
179
- if(options[key] === true) {
180
- value = true;
181
- }
182
- } else {
183
- value = defaultOptions[key];
184
- }
185
-
186
- if(value === true) {
187
- toolbar.append(templates(key, locale[culture], options));
188
-
189
- if(key === "html") {
190
- this.initHtml(toolbar);
191
- }
192
-
193
- if(key === "link") {
194
- this.initInsertLink(toolbar);
195
- }
196
-
197
- if(key === "image") {
198
- this.initInsertImage(toolbar);
199
- }
200
- }
201
- }
202
-
203
- if(options.toolbar) {
204
- for(key in options.toolbar) {
205
- toolbar.append(options.toolbar[key]);
206
- }
207
- }
208
-
209
- toolbar.find("a[data-wysihtml5-command='formatBlock']").click(function(e) {
210
- var target = e.target || e.srcElement;
211
- var el = $(target);
212
- self.toolbar.find('.current-font').text(el.html());
213
- });
214
-
215
- toolbar.find("a[data-wysihtml5-command='foreColor']").click(function(e) {
216
- var target = e.target || e.srcElement;
217
- var el = $(target);
218
- self.toolbar.find('.current-color').text(el.html());
219
- });
220
-
221
- this.el.before(toolbar);
222
-
223
- return toolbar;
224
- },
225
-
226
- initHtml: function(toolbar) {
227
- var changeViewSelector = "a[data-wysihtml5-action='change_view']";
228
- toolbar.find(changeViewSelector).click(function(e) {
229
- toolbar.find('a.btn').not(changeViewSelector).toggleClass('disabled');
230
- });
231
- },
232
-
233
- initInsertImage: function(toolbar) {
234
- var self = this;
235
- var insertImageModal = toolbar.find('.bootstrap-wysihtml5-insert-image-modal');
236
- var urlInput = insertImageModal.find('.bootstrap-wysihtml5-insert-image-url');
237
- var insertButton = insertImageModal.find('a.btn-primary');
238
- var initialValue = urlInput.val();
239
- var caretBookmark;
240
-
241
- var insertImage = function() {
242
- var url = urlInput.val();
243
- urlInput.val(initialValue);
244
- self.editor.currentView.element.focus();
245
- if (caretBookmark) {
246
- self.editor.composer.selection.setBookmark(caretBookmark);
247
- caretBookmark = null;
248
- }
249
- self.editor.composer.commands.exec("insertImage", url);
250
- };
251
-
252
- urlInput.keypress(function(e) {
253
- if(e.which == 13) {
254
- insertImage();
255
- insertImageModal.modal('hide');
256
- }
257
- });
258
-
259
- insertButton.click(insertImage);
260
-
261
- insertImageModal.on('shown', function() {
262
- urlInput.focus();
263
- });
264
-
265
- insertImageModal.on('hide', function() {
266
- self.editor.currentView.element.focus();
267
- });
268
-
269
- toolbar.find('a[data-wysihtml5-command=insertImage]').click(function() {
270
- var activeButton = $(this).hasClass("wysihtml5-command-active");
271
-
272
- if (!activeButton) {
273
- self.editor.currentView.element.focus(false);
274
- caretBookmark = self.editor.composer.selection.getBookmark();
275
- insertImageModal.appendTo('body').modal('show');
276
- insertImageModal.on('click.dismiss.modal', '[data-dismiss="modal"]', function(e) {
277
- e.stopPropagation();
278
- });
279
- return false;
280
- }
281
- else {
282
- return true;
283
- }
284
- });
285
- },
286
-
287
- initInsertLink: function(toolbar) {
288
- var self = this;
289
- var insertLinkModal = toolbar.find('.bootstrap-wysihtml5-insert-link-modal');
290
- var urlInput = insertLinkModal.find('.bootstrap-wysihtml5-insert-link-url');
291
- var targetInput = insertLinkModal.find('.bootstrap-wysihtml5-insert-link-target');
292
- var insertButton = insertLinkModal.find('a.btn-primary');
293
- var initialValue = urlInput.val();
294
- var caretBookmark;
295
-
296
- var insertLink = function() {
297
- var url = urlInput.val();
298
- urlInput.val(initialValue);
299
- self.editor.currentView.element.focus();
300
- if (caretBookmark) {
301
- self.editor.composer.selection.setBookmark(caretBookmark);
302
- caretBookmark = null;
303
- }
304
-
305
- var newWindow = targetInput.prop("checked");
306
- self.editor.composer.commands.exec("createLink", {
307
- 'href' : url,
308
- 'target' : (newWindow ? '_blank' : '_self'),
309
- 'rel' : (newWindow ? 'nofollow' : '')
310
- });
311
- };
312
- var pressedEnter = false;
313
-
314
- urlInput.keypress(function(e) {
315
- if(e.which == 13) {
316
- insertLink();
317
- insertLinkModal.modal('hide');
318
- }
319
- });
320
-
321
- insertButton.click(insertLink);
322
-
323
- insertLinkModal.on('shown', function() {
324
- urlInput.focus();
325
- });
326
-
327
- insertLinkModal.on('hide', function() {
328
- self.editor.currentView.element.focus();
329
- });
330
-
331
- toolbar.find('a[data-wysihtml5-command=createLink]').click(function() {
332
- var activeButton = $(this).hasClass("wysihtml5-command-active");
333
-
334
- if (!activeButton) {
335
- self.editor.currentView.element.focus(false);
336
- caretBookmark = self.editor.composer.selection.getBookmark();
337
- insertLinkModal.appendTo('body').modal('show');
338
- insertLinkModal.on('click.dismiss.modal', '[data-dismiss="modal"]', function(e) {
339
- e.stopPropagation();
340
- });
341
- return false;
342
- }
343
- else {
344
- return true;
345
- }
346
- });
347
- }
348
- };
349
-
350
- // these define our public api
351
- var methods = {
352
- resetDefaults: function() {
353
- $.fn.wysihtml5.defaultOptions = $.extend(true, {}, $.fn.wysihtml5.defaultOptionsCache);
354
- },
355
- bypassDefaults: function(options) {
356
- return this.each(function () {
357
- var $this = $(this);
358
- $this.data('wysihtml5', new Wysihtml5($this, options));
359
- });
360
- },
361
- shallowExtend: function (options) {
362
- var settings = $.extend({}, $.fn.wysihtml5.defaultOptions, options || {}, $(this).data());
363
- var that = this;
364
- return methods.bypassDefaults.apply(that, [settings]);
365
- },
366
- deepExtend: function(options) {
367
- var settings = $.extend(true, {}, $.fn.wysihtml5.defaultOptions, options || {});
368
- var that = this;
369
- return methods.bypassDefaults.apply(that, [settings]);
370
- },
371
- init: function(options) {
372
- var that = this;
373
- return methods.shallowExtend.apply(that, [options]);
374
- }
375
- };
376
-
377
- $.fn.wysihtml5 = function ( method ) {
378
- if ( methods[method] ) {
379
- return methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
380
- } else if ( typeof method === 'object' || ! method ) {
381
- return methods.init.apply( this, arguments );
382
- } else {
383
- $.error( 'Method ' + method + ' does not exist on jQuery.wysihtml5' );
384
- }
385
- };
386
-
387
- $.fn.wysihtml5.Constructor = Wysihtml5;
388
-
389
- var defaultOptions = $.fn.wysihtml5.defaultOptions = {
390
- "font-styles": true,
391
- "color": false,
392
- "emphasis": true,
393
- "lists": true,
394
- "html": false,
395
- "link": true,
396
- "image": true,
397
- events: {},
398
- parserRules: {
399
- classes: {
400
- // (path_to_project/lib/css/wysiwyg-color.css)
401
- "wysiwyg-color-silver" : 1,
402
- "wysiwyg-color-gray" : 1,
403
- "wysiwyg-color-white" : 1,
404
- "wysiwyg-color-maroon" : 1,
405
- "wysiwyg-color-red" : 1,
406
- "wysiwyg-color-purple" : 1,
407
- "wysiwyg-color-fuchsia" : 1,
408
- "wysiwyg-color-green" : 1,
409
- "wysiwyg-color-lime" : 1,
410
- "wysiwyg-color-olive" : 1,
411
- "wysiwyg-color-yellow" : 1,
412
- "wysiwyg-color-navy" : 1,
413
- "wysiwyg-color-blue" : 1,
414
- "wysiwyg-color-teal" : 1,
415
- "wysiwyg-color-aqua" : 1,
416
- "wysiwyg-color-orange" : 1
417
- },
418
- tags: {
419
- "b": {},
420
- "i": {},
421
- "br": {},
422
- "ol": {},
423
- "ul": {},
424
- "li": {},
425
- "h1": {},
426
- "h2": {},
427
- "h3": {},
428
- "h4": {},
429
- "h5": {},
430
- "h6": {},
431
- "blockquote": {},
432
- "u": 1,
433
- "img": {
434
- "check_attributes": {
435
- "width": "numbers",
436
- "alt": "alt",
437
- "src": "url",
438
- "height": "numbers"
439
- }
440
- },
441
- "a": {
442
- check_attributes: {
443
- 'href': "url", // important to avoid XSS
444
- 'target': 'alt',
445
- 'rel': 'alt'
446
- }
447
- },
448
- "span": 1,
449
- "div": 1,
450
- // to allow save and edit files with code tag hacks
451
- "code": 1,
452
- "pre": 1
453
- }
454
- },
455
- stylesheets: ["<%= stylesheet_path('bootstrap-wysihtml5/wysiwyg-color.css') %>"], // (path_to_project/lib/css/wysiwyg-color.css)
456
- locale: "en"
457
- };
458
-
459
- if (typeof $.fn.wysihtml5.defaultOptionsCache === 'undefined') {
460
- $.fn.wysihtml5.defaultOptionsCache = $.extend(true, {}, $.fn.wysihtml5.defaultOptions);
461
- }
462
-
463
- var locale = $.fn.wysihtml5.locale = {
464
- en: {
465
- font_styles: {
466
- normal: "Normal text",
467
- h1: "Heading 1",
468
- h2: "Heading 2",
469
- h3: "Heading 3",
470
- h4: "Heading 4",
471
- h5: "Heading 5",
472
- h6: "Heading 6"
473
- },
474
- emphasis: {
475
- bold: "Bold",
476
- italic: "Italic",
477
- underline: "Underline"
478
- },
479
- lists: {
480
- unordered: "Unordered list",
481
- ordered: "Ordered list",
482
- outdent: "Outdent",
483
- indent: "Indent"
484
- },
485
- link: {
486
- insert: "Insert link",
487
- cancel: "Cancel",
488
- target: "Open link in new window"
489
- },
490
- image: {
491
- insert: "Insert image",
492
- cancel: "Cancel"
493
- },
494
- html: {
495
- edit: "Edit HTML"
496
- },
497
- colours: {
498
- black: "Black",
499
- silver: "Silver",
500
- gray: "Grey",
501
- maroon: "Maroon",
502
- red: "Red",
503
- purple: "Purple",
504
- green: "Green",
505
- olive: "Olive",
506
- navy: "Navy",
507
- blue: "Blue",
508
- orange: "Orange"
509
- }
510
- }
511
- };
512
-
513
- }(window.jQuery, window.wysihtml5);