muck-contents 0.2.15 → 0.2.16

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.15
1
+ 0.2.16
@@ -79,9 +79,13 @@ module TinymceHelper
79
79
 
80
80
  # Adds tiny mce intialization code if it hasn't already been added.
81
81
  def init_tiny_mce
82
- return if @init_tiny_mce_completed
83
- @init_tiny_mce_completed = true
84
82
  render :partial => 'tiny_mce/init_tiny_mce'
85
83
  end
86
84
 
85
+ def init_tiny_mce_head
86
+ return if @init_tiny_mce_core_completed
87
+ @init_tiny_mce_core_completed = true
88
+ render :partial => 'tiny_mce/tiny_mce_head'
89
+ end
90
+
87
91
  end
@@ -1,3 +1,2 @@
1
- <% content_for :head do -%>
2
- <%= include_tiny_mce_if_needed %>
3
- <% end -%>
1
+ <%= init_tiny_mce_head %>
2
+ <%= tiny_mce_init %>
@@ -0,0 +1,3 @@
1
+ <% content_for :head do -%>
2
+ <%= include_tiny_mce_js_if_needed %>
3
+ <% end -%>
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{muck-contents}
8
- s.version = "0.2.15"
8
+ s.version = "0.2.16"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Ball", "Joel Duffin"]
12
- s.date = %q{2010-01-13}
12
+ s.date = %q{2010-01-15}
13
13
  s.email = %q{justin@tatemae.com}
14
14
  s.extra_rdoc_files = [
15
15
  "README.rdoc"
@@ -35,6 +35,7 @@ Gem::Specification.new do |s|
35
35
  "app/views/layouts/tiny_mce.html.erb",
36
36
  "app/views/tiny_mce/_flickr_photo.html.erb",
37
37
  "app/views/tiny_mce/_init_tiny_mce.html.erb",
38
+ "app/views/tiny_mce/_tiny_mce_head.html.erb",
38
39
  "app/views/tiny_mce/_tiny_mce_messages_and_scripts_for.html.erb",
39
40
  "app/views/tiny_mce/_tiny_mce_scripts.html.erb",
40
41
  "app/views/tiny_mce/files.html.erb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muck-contents
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.15
4
+ version: 0.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Ball
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-01-13 00:00:00 -07:00
13
+ date: 2010-01-15 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -142,6 +142,7 @@ files:
142
142
  - app/views/layouts/tiny_mce.html.erb
143
143
  - app/views/tiny_mce/_flickr_photo.html.erb
144
144
  - app/views/tiny_mce/_init_tiny_mce.html.erb
145
+ - app/views/tiny_mce/_tiny_mce_head.html.erb
145
146
  - app/views/tiny_mce/_tiny_mce_messages_and_scripts_for.html.erb
146
147
  - app/views/tiny_mce/_tiny_mce_scripts.html.erb
147
148
  - app/views/tiny_mce/files.html.erb