Skip to content

Commit

Permalink
added default options setters
Browse files Browse the repository at this point in the history
  • Loading branch information
ncri committed Mar 30, 2013
1 parent 5346538 commit 7ef42f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/hallo_rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module HalloRails
VERSION = "0.2.9"
VERSION = "0.3.0"
end
9 changes: 8 additions & 1 deletion vendor/assets/javascripts/hallo_rails.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ default_plugins =
hallohtml: {}
'hallo-image-insert-edit': {}


set_options = (options) ->
default_options = options

set_plugins = (plugins) ->
default_plugins = plugins

init = ->
attach_editors()

Expand Down Expand Up @@ -61,7 +68,7 @@ attach_editors = ->
$(this).focus() # required for firefox as otherwise when clicking on edit overlay element doesn't focus


@HalloRails = { default_options, default_plugins, init, attach_editors }
@HalloRails = { set_options, set_plugins, init, attach_editors }



Expand Down

0 comments on commit 7ef42f7

Please sign in to comment.