Jammit 无法打包tinyMCE

发布于 2024-11-29 03:13:37 字数 2811 浏览 1 评论 0原文

当我使用tinyMCE加载页面时,出现以下错误:

“NetworkError: 404 Not Found - http: //localhost:3000/users//langs/en.js" en.js “网络错误:404 未找到 - http://localhost:3000/users//themes/ Advanced/editor_template.js

路径似乎全部错误,但我不知道如何调试它。

编辑:根据要求,我添加了一些代码

application.js

tinyMCE.init({
          content_css : '/stylesheets/tinyMCE.css?bogus=1306384393',
          editor_selector : 'mceEditor',
          font_size_style_values : '10px,12px,13px,14px,16px,18px,20px',
          language : 'en',
          mode : 'textareas',
          theme : 'advanced',
          theme_advanced_buttons1 : 'bold,italic,underline,fontsizeselect,forecolor,|,bullist,numlist,|,outdent,indent, justifycenter,justifyright,justifyleft, blockquote',
          theme_advanced_buttons2 : '',
          theme_advanced_buttons3 : '',
          theme_advanced_containers_default_align : 'left',
          theme_advanced_font_sizes : '10px,12px,13px,14px,16px,18px,20px',
          theme_advanced_resizing : false,
          theme_advanced_toolbar_align : 'left',
          theme_advanced_toolbar_location : 'top'
          });

jammit asset.yml:

embed_assets: off
javascripts:



workspace:
      - public/javascripts/jquery/1.6.1/jquery.js
      - public/javascripts/jqueryui/1.8.13/jquery-ui.js
      - public/javascripts/rails.validations.js
      - public/javascripts/cocoon.js
      - public/javascripts/jquery_plugins/count_char/jquery.jqEasyCharCounter.js
      - public/javascripts/jquery_plugins/jquery.truncate/jquery.truncate.js         
      - public/javascripts/jquery_plugins/jquery.watermark-3.1.3/jquery.watermark.js  
      - public/javascripts/jquery_plugins/jquery.elastic-1.6.10/jquery.elastic.source.js
      - public/javascripts/swfobject.js
      - public/javascripts/tiny_mce/tiny_mce.js
      - public/javascripts/jquery.uploadify.v2.1.4.js
      - public/javascripts/jquery_plugins/jquery.webcam/jquery.webcam.js
      - public/javascripts/jquery_plugins/paulelliott-In-Field-Labels-jQuery-Plugin-796bc1f/src/jquery.infieldlabel.js
      - public/javascripts/scribd_view.js
      - public/javascripts/rails.js
      - public/javascripts/application.js



    stylesheets:
      common:
          - public/stylesheets/blueprint/screen.css
          - public/stylesheets/jquery-ui/*.css
          - public/stylesheets/jquery.fileupload-ui.css
          - public/stylesheets/tinyMCE.css
          - public/stylesheets/application.css
      ie_any:
          - public/stylesheets/ie_fixes.css
      ie_before_v8: 
          - public/stylesheets/blueprint/ie.css

感谢您的帮助, -马泰奥

When I load the page with tinyMCE I get the following errors:

"NetworkError: 404 Not Found - http://localhost:3000/users//langs/en.js"
en.js
"NetworkError: 404 Not Found - http://localhost:3000/users//themes/advanced/editor_template.js"

The path seems to be all wrong but I have no idea how to debug this.

Edit: as requested I am adding some code

application.js

tinyMCE.init({
          content_css : '/stylesheets/tinyMCE.css?bogus=1306384393',
          editor_selector : 'mceEditor',
          font_size_style_values : '10px,12px,13px,14px,16px,18px,20px',
          language : 'en',
          mode : 'textareas',
          theme : 'advanced',
          theme_advanced_buttons1 : 'bold,italic,underline,fontsizeselect,forecolor,|,bullist,numlist,|,outdent,indent, justifycenter,justifyright,justifyleft, blockquote',
          theme_advanced_buttons2 : '',
          theme_advanced_buttons3 : '',
          theme_advanced_containers_default_align : 'left',
          theme_advanced_font_sizes : '10px,12px,13px,14px,16px,18px,20px',
          theme_advanced_resizing : false,
          theme_advanced_toolbar_align : 'left',
          theme_advanced_toolbar_location : 'top'
          });

jammit asset.yml:

embed_assets: off
javascripts:



workspace:
      - public/javascripts/jquery/1.6.1/jquery.js
      - public/javascripts/jqueryui/1.8.13/jquery-ui.js
      - public/javascripts/rails.validations.js
      - public/javascripts/cocoon.js
      - public/javascripts/jquery_plugins/count_char/jquery.jqEasyCharCounter.js
      - public/javascripts/jquery_plugins/jquery.truncate/jquery.truncate.js         
      - public/javascripts/jquery_plugins/jquery.watermark-3.1.3/jquery.watermark.js  
      - public/javascripts/jquery_plugins/jquery.elastic-1.6.10/jquery.elastic.source.js
      - public/javascripts/swfobject.js
      - public/javascripts/tiny_mce/tiny_mce.js
      - public/javascripts/jquery.uploadify.v2.1.4.js
      - public/javascripts/jquery_plugins/jquery.webcam/jquery.webcam.js
      - public/javascripts/jquery_plugins/paulelliott-In-Field-Labels-jQuery-Plugin-796bc1f/src/jquery.infieldlabel.js
      - public/javascripts/scribd_view.js
      - public/javascripts/rails.js
      - public/javascripts/application.js



    stylesheets:
      common:
          - public/stylesheets/blueprint/screen.css
          - public/stylesheets/jquery-ui/*.css
          - public/stylesheets/jquery.fileupload-ui.css
          - public/stylesheets/tinyMCE.css
          - public/stylesheets/application.css
      ie_any:
          - public/stylesheets/ie_fixes.css
      ie_before_v8: 
          - public/stylesheets/blueprint/ie.css

Thanks for any help,
-Matteo

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文