asset_packing tiny_mce files
Posted
by haries
on Stack Overflow
See other posts from Stack Overflow
or by haries
Published on 2010-04-16T07:57:24Z
Indexed on
2010/04/16
8:03 UTC
Read the original article
Hit count: 147
tinymce
|ruby-on-rails
I use inplacericheditor plugin and tiny_mce
Before asset_packager usage, this is how I include the files and they work well
<script src="/javascripts/patch_inplaceeditor_1-8-2.js" type="text/javascript">
</script>
<script src="/javascripts/patch_inplaceeditor_editonblank_1-8-2.js" type="text/javascript" </script>
<script src="/javascripts/tiny_mce/tiny_mce.js" type="text/javascript"></script>
<script src="/javascripts/tiny_mce_init.js" type="text/javascript"></script>
<script src="/javascripts/inplacericheditor.js" type="text/javascript"></script>
My asset_packager.yml section looks like this for the above files:
- tinyeditor:
- patch_inplaceeditor_1-8-2
- patch_inplaceeditor_editonblank_1-8-2
- tiny_mce/tiny_mce
- tiny_mce_init
- tiny_mce/langs/en
- tiny_mce/themes/advanced/editor_template
- tiny_mce/themes/advanced/langs/en
- tiny_mce/plugins/save/editor_plugin
- tiny_mce/plugins/autoresize/editor_plugin
- tiny_mce/plugins/paste/editor_plugin
- tiny_mce/plugins/preview/editor_plugin
- tiny_mce/plugins/table/editor_plugin
- tiny_mce/plugins/contextmenu/editor_plugin
- tiny_mce/plugins/emotions/editor_plugin
- inplacericheditor
When I include the asset_packaged file and load the page (in production) I get the following errors:
"Ajax.InPlaceEditor is undefined" "Ajax.InPlaceRichEditor is not a constructor"
Can anyone shed some light on where I am going wrong or share a better way to asset_package tinymce?
Thanks!
© Stack Overflow or respective owner