bootstrap-wysihtml5-rails 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc CHANGED
@@ -6,10 +6,10 @@
6
6
  # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
7
7
  # Only full ruby name is supported here, for short names use:
8
8
  # echo "rvm use 1.9.3" > .rvmrc
9
- environment_id="ruby-1.9.3-p125@bootstrap-wysihtml5"
9
+ environment_id="ruby-1.9.3-p194@bootstrap-wysihtml5"
10
10
 
11
11
  # Uncomment the following lines if you want to verify rvm version per project
12
- # rvmrc_rvm_version="1.11.2" # 1.10.1 seams as a safe start
12
+ # rvmrc_rvm_version="1.13.5 (master)" # 1.10.1 seams as a safe start
13
13
  # eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
14
14
  # echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
15
15
  # return 1
@@ -36,7 +36,7 @@ fi
36
36
  # If you use bundler, this might be useful to you:
37
37
  # if [[ -s Gemfile ]] && {
38
38
  # ! builtin command -v bundle >/dev/null ||
39
- # builtin command -v bundle | grep $rvm_path/bin/bundle >/dev/null
39
+ # builtin command -v bundle | GREP_OPTIONS= \grep $rvm_path/bin/bundle >/dev/null
40
40
  # }
41
41
  # then
42
42
  # printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
@@ -44,5 +44,5 @@ fi
44
44
  # fi
45
45
  # if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
46
46
  # then
47
- # bundle install | grep -vE '^Using|Your bundle is complete'
47
+ # bundle install | GREP_OPTIONS= \grep -vE '^Using|Your bundle is complete'
48
48
  # fi
@@ -1,5 +1,5 @@
1
1
  module BootstrapWysihtml5Rails
2
2
  module Rails
3
- VERSION = "0.2.9"
3
+ VERSION = "0.2.10"
4
4
  end
5
5
  end
@@ -113,7 +113,8 @@
113
113
  }
114
114
  }
115
115
  }
116
- }
116
+ },
117
+ stylesheets: []
117
118
  };
118
119
 
119
120
  var Wysihtml5 = function(el, options) {
@@ -135,26 +136,32 @@
135
136
  Wysihtml5.prototype = {
136
137
  constructor: Wysihtml5,
137
138
 
138
- createEditor: function(options) {
139
- var parserRules = defaultOptions.parserRules;
139
+ createEditor: function(options) {
140
+ var parserRules = defaultOptions.parserRules;
141
+ var stylesheets = defaultOptions.stylesheets;
140
142
 
141
- if(options && options.parserRules) {
142
- parserRules = options.parserRules;
143
- }
144
-
145
- var editor = new wysi.Editor(this.el.attr('id'), {
146
- toolbar: this.toolbar.attr('id'),
147
- parserRules: parserRules
148
- });
149
-
150
- if(options && options.events) {
151
- for(var eventName in options.events) {
152
- editor.on(eventName, options.events[eventName]);
153
- }
154
- }
143
+ if(options && options.parserRules) {
144
+ parserRules = options.parserRules;
145
+ }
155
146
 
156
- return editor;
157
- },
147
+ if (options && options.stylesheets) {
148
+ stylesheets = options.stylesheets;
149
+ }
150
+
151
+ var editor = new wysi.Editor(this.el.attr('id'), {
152
+ toolbar: this.toolbar.attr('id'),
153
+ parserRules: parserRules,
154
+ stylesheets: stylesheets
155
+ });
156
+
157
+ if(options && options.events) {
158
+ for(var eventName in options.events) {
159
+ editor.on(eventName, options.events[eventName]);
160
+ }
161
+ }
162
+
163
+ return editor;
164
+ },
158
165
 
159
166
  createToolbar: function(el, options) {
160
167
  var self = this;
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.2.9
4
+ version: 0.2.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-05-12 00:00:00.000000000 Z
12
+ date: 2012-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -94,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  segments:
96
96
  - 0
97
- hash: -2108804871133307246
97
+ hash: 1933604991881565921
98
98
  required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  none: false
100
100
  requirements:
@@ -103,10 +103,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  segments:
105
105
  - 0
106
- hash: -2108804871133307246
106
+ hash: 1933604991881565921
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 1.8.21
109
+ rubygems_version: 1.8.24
110
110
  signing_key:
111
111
  specification_version: 3
112
112
  summary: A wysiwyg text editor for Twitter Bootstrap