fondant-rails 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -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,4 +1,4 @@
|
|
1
|
-
# ## Fondant v0.2.
|
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>'
|