hallo_rails 0.2.9 → 0.3.0

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.
@@ -1,3 +1,3 @@
1
1
  module HalloRails
2
- VERSION = "0.2.9"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -11,6 +11,13 @@ default_plugins =
11
11
  hallohtml: {}
12
12
  'hallo-image-insert-edit': {}
13
13
 
14
+
15
+ set_options = (options) ->
16
+ default_options = options
17
+
18
+ set_plugins = (plugins) ->
19
+ default_plugins = plugins
20
+
14
21
  init = ->
15
22
  attach_editors()
16
23
 
@@ -61,7 +68,7 @@ attach_editors = ->
61
68
  $(this).focus() # required for firefox as otherwise when clicking on edit overlay element doesn't focus
62
69
 
63
70
 
64
- @HalloRails = { default_options, default_plugins, init, attach_editors }
71
+ @HalloRails = { set_options, set_plugins, init, attach_editors }
65
72
 
66
73
 
67
74
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hallo_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
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: 2013-03-11 00:00:00.000000000 Z
12
+ date: 2013-03-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails