fondant-rails 0.2.3 → 0.2.4

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.
data/README.md CHANGED
@@ -6,7 +6,7 @@ Use [fondant](https://github.com/ovenbits-ingredients/fondant) in Rails' asset p
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
- gem 'fondant-rails', '~> 0.2.2'
9
+ gem 'fondant-rails', '~> 0.2.4'
10
10
 
11
11
  ## Contributing
12
12
 
@@ -28,6 +28,9 @@ class SourceFile < Thor
28
28
  gsub_file '../../lib/fondant-rails/version.rb', /VERSION\s=\s'(\d|\.)+'$/ do |match|
29
29
  %Q{VERSION = '#{version}'}
30
30
  end
31
+ gsub_file '../../README.md', /gem 'fondant-rails', '~>\s(\d|\.)+'/ do |match|
32
+ %Q{gem 'fondant-rails', '~> #{version}'}
33
+ end
31
34
  end
32
35
  end
33
36
  end
@@ -1,5 +1,5 @@
1
1
  module Fondant
2
2
  module Rails
3
- VERSION = '0.2.3'
3
+ VERSION = '0.2.4'
4
4
  end
5
5
  end
@@ -1,4 +1,4 @@
1
- # ## Fondant v0.2.3
1
+ # ## Fondant v0.2.4
2
2
  #
3
3
  # The icing on the cake for user input. A simple jQuery HTML5 WYSIWYG editor
4
4
  # using `contenteditable`.
@@ -258,6 +258,7 @@ $ ->
258
258
  #
259
259
  applyFormat: ( command, value ) ->
260
260
  document.execCommand command, false, value
261
+ @focus()
261
262
 
262
263
  # ## Formatting Functions
263
264
  #
@@ -309,7 +310,7 @@ $ ->
309
310
  # * `h4()`
310
311
  # * `blockquote()`
311
312
  #
312
- p: -> @applyFormat 'formatBlock', '<p>'
313
+ p: -> @applyFormat 'outdent'; @applyFormat 'formatBlock', '<p>'
313
314
  h1: -> @applyFormat 'formatBlock', '<h1>'
314
315
  h2: -> @applyFormat 'formatBlock', '<h2>'
315
316
  h3: -> @applyFormat 'formatBlock', '<h3>'
@@ -1,4 +1,4 @@
1
- // Fondant v0.2.3
1
+ // Fondant v0.2.4
2
2
  // see http://github.com/ovenbits-ingredients/fondant for more information
3
3
  //
4
4
  .fondant-toolbar {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fondant-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: