tinymce hates being cached

Oleg committed Mar 22, 2011
commit 172aa26ec8acbf1d8e872da93e83cf5b7c5d55b6
Showing 3 changed files with 7 additions and 2 deletions
app/views/layouts/cms_admin.html.erb +1 -0
@@ @@ -6,6 +6,7 @@
<%= csrf_meta_tag %>
<%= stylesheet_link_tag :cms, :cache => ('_cms' if ComfortableMexicanSofa.config.enable_caching) %>
<%= javascript_include_tag :cms, :cache => ('_cms' if ComfortableMexicanSofa.config.enable_caching) %>
+ <%= javascript_include_tag :tiny_mce %>
<%= yield :head %>
<%= cms_hook :html_head %>
</head>
comfortable_mexican_sofa/view_methods.rb b/lib/comfortable_mexican_sofa/view_methods.rb +5 -2
@@ @@ -44,13 +44,16 @@ ActionView::Helpers::AssetTagHelper.register_javascript_expansion :cms => [
'comfortable_mexican_sofa/jquery',
'comfortable_mexican_sofa/jquery-ui/jquery-ui',
'comfortable_mexican_sofa/rails',
- 'comfortable_mexican_sofa/tiny_mce/tiny_mce',
- 'comfortable_mexican_sofa/tiny_mce/jquery.tinymce',
'comfortable_mexican_sofa/plupload/plupload.min',
'comfortable_mexican_sofa/plupload/plupload.html5.min',
'comfortable_mexican_sofa/codemirror/codemirror.js',
'comfortable_mexican_sofa/cms'
]
+ ActionView::Helpers::AssetTagHelper.register_javascript_expansion :tiny_mce => [
+ 'comfortable_mexican_sofa/tiny_mce/tiny_mce',
+ 'comfortable_mexican_sofa/tiny_mce/jquery.tinymce'
+ ]
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :cms => [
'comfortable_mexican_sofa/reset',
'comfortable_mexican_sofa/structure',
public/stylesheets/comfortable_mexican_sofa/structure.css +1 -0
@@ @@ -114,6 +114,7 @@ table.formatted td.action_links a:hover {
border-color: #484848;
}
a.button.big,
+ button,
input[type='button'],
input[type='submit'],
input[type='reset'],