bootsy 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/bootsy/bootsy.js.erb +15 -15
- data/lib/bootsy/version.rb +1 -1
- metadata +3 -3
@@ -1,8 +1,8 @@
|
|
1
1
|
<%# encoding: UTF-8 %>
|
2
2
|
|
3
|
-
|
3
|
+
window.Bootsy = (function(){
|
4
4
|
|
5
|
-
var Bootsy = {unsavedChanges: false};
|
5
|
+
var Bootsy = {unsavedChanges: false, editor: false, editorOptions: {}};
|
6
6
|
|
7
7
|
|
8
8
|
Bootsy.progressBar = function(element){
|
@@ -53,28 +53,28 @@ var Bootsy = (function(){
|
|
53
53
|
Bootsy.refreshGallery(element);
|
54
54
|
});
|
55
55
|
|
56
|
-
|
56
|
+
Bootsy.editorOptions = {color: true, locale: "<%= I18n.default_locale %>"};
|
57
57
|
|
58
58
|
if($('textarea.bootsy_text_area').attr('data-enable-image') == 'false'){
|
59
|
-
editorOptions.image = false;
|
59
|
+
Bootsy.editorOptions.image = false;
|
60
60
|
}else{
|
61
61
|
if($('textarea.bootsy_text_area').attr('data-enable-uploader') == 'false'){
|
62
|
-
editorOptions.image = true;
|
62
|
+
Bootsy.editorOptions.image = true;
|
63
63
|
}else{
|
64
|
-
editorOptions.image = false;
|
65
|
-
editorOptions.imageUpload = true;
|
66
|
-
editorOptions.imageUploadCallback = Bootsy.openImageGallery;
|
64
|
+
Bootsy.editorOptions.image = false;
|
65
|
+
Bootsy.editorOptions.imageUpload = true;
|
66
|
+
Bootsy.editorOptions.imageUploadCallback = Bootsy.openImageGallery;
|
67
67
|
}
|
68
68
|
}
|
69
69
|
|
70
|
-
if($('textarea.bootsy_text_area').attr('data-enable-font-styles') == 'false') editorOptions['font-styles'] = false;
|
71
|
-
if($('textarea.bootsy_text_area').attr('data-enable-emphasis') == 'false') editorOptions.emphasis = false;
|
72
|
-
if($('textarea.bootsy_text_area').attr('data-enable-lists') == 'false') editorOptions.lists = false;
|
73
|
-
if($('textarea.bootsy_text_area').attr('data-enable-html') == 'true') editorOptions.html = true;
|
74
|
-
if($('textarea.bootsy_text_area').attr('data-enable-link') == 'false') editorOptions.link = false;
|
75
|
-
if($('textarea.bootsy_text_area').attr('data-enable-color') == 'false') editorOptions.color = false;
|
70
|
+
if($('textarea.bootsy_text_area').attr('data-enable-font-styles') == 'false') Bootsy.editorOptions['font-styles'] = false;
|
71
|
+
if($('textarea.bootsy_text_area').attr('data-enable-emphasis') == 'false') Bootsy.editorOptions.emphasis = false;
|
72
|
+
if($('textarea.bootsy_text_area').attr('data-enable-lists') == 'false') Bootsy.editorOptions.lists = false;
|
73
|
+
if($('textarea.bootsy_text_area').attr('data-enable-html') == 'true') Bootsy.editorOptions.html = true;
|
74
|
+
if($('textarea.bootsy_text_area').attr('data-enable-link') == 'false') Bootsy.editorOptions.link = false;
|
75
|
+
if($('textarea.bootsy_text_area').attr('data-enable-color') == 'false') Bootsy.editorOptions.color = false;
|
76
76
|
|
77
|
-
Bootsy.editor = $('textarea.bootsy_text_area').wysihtml5(editorOptions).data("wysihtml5").editor;
|
77
|
+
Bootsy.editor = $('textarea.bootsy_text_area').wysihtml5(Bootsy.editorOptions).data("wysihtml5").editor;
|
78
78
|
|
79
79
|
element.on('hide', function() {
|
80
80
|
Bootsy.editor.currentView.element.focus();
|
data/lib/bootsy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootsy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -218,7 +218,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
218
218
|
version: '0'
|
219
219
|
segments:
|
220
220
|
- 0
|
221
|
-
hash:
|
221
|
+
hash: -77702257
|
222
222
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
223
223
|
none: false
|
224
224
|
requirements:
|
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
227
|
version: '0'
|
228
228
|
segments:
|
229
229
|
- 0
|
230
|
-
hash:
|
230
|
+
hash: -77702257
|
231
231
|
requirements: []
|
232
232
|
rubyforge_project:
|
233
233
|
rubygems_version: 1.8.24
|