spree-contrib / spree_editor

Rich text editor for Spree with Image and File uploading in-place.
http://guides.spreecommerce.org
BSD 3-Clause "New" or "Revised" License
112 stars 181 forks source link

Spree_editor Ckeditor, Asset filtered out and will not be served #77

Closed dieuit07 closed 10 years ago

dieuit07 commented 10 years ago

I am using: spree 2.3 beta spree_editor (2.2.1) ckeditor (4.0.11)

After init follow the instruction document. Running and I get bug :

Showing vendor/spree_editor/app/views/shared/editor_engines/_ck_editor.html.erb where line #6 raised:

Asset filtered out and will not be served: add `Rails.application.config.assets.precompile += %w( ckeditor/plugins/scayt/README.md )` to `config/initializers/assets.rb` and restart your server

I have following this bug instruction and now my file initializes/assets.rb:


Rails.application.config.assets.precompile += %w( ckeditor/filebrowser/stylesheets/uploader.css )

Rails.application.config.assets.precompile += %w( ckeditor/filebrowser/javascripts/jquery.min.js )
Rails.application.config.assets.precompile += %w( ckeditor/filebrowser/javascripts/rails.js )
Rails.application.config.assets.precompile += %w( ckeditor/filebrowser/javascripts/jquery.tmpl.min.js )
Rails.application.config.assets.precompile += %w( tinymce-jquery.js )
Rails.application.config.assets.precompile += %w( ckeditor/filebrowser/javascripts/fileuploader.js )

Rails.application.config.assets.precompile += %w( ckeditor/CHANGES.md )
Rails.application.config.assets.precompile += %w( ckeditor/LICENSE.md )
Rails.application.config.assets.precompile += %w( ckeditor/README.md )
Rails.application.config.assets.precompile += %w( ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt )

Rails.application.config.assets.precompile += %w( ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png )
Rails.application.config.assets.precompile += %w( ckeditor/plugins/about/dialogs/logo_ckeditor.png )
Rails.application.config.assets.precompile += %w( ckeditor/plugins/fakeobjects/images/spacer.gif )
Rails.application.config.assets.precompile += %w( ckeditor/plugins/flash/images/placeholder.png )
Rails.application.config.assets.precompile += %w( ckeditor/plugins/forms/images/hiddenfield.gif )
Rails.application.config.assets.precompile += %w( ckeditor/plugins/icons.png )
Rails.application.config.assets.precompile += %w( ckeditor/plugins/icons_hidpi.png )
Rails.application.config.assets.precompile += %w( ckeditor/plugins/iframe/images/placeholder.png )
Rails.application.config.assets.precompile += %w( ckeditor/plugins/image/images/noimage.png )
Rails.application.config.assets.precompile += %w( ckeditor/plugins/link/images/anchor.png )
Rails.application.config.assets.precompile += %w( ckeditor/plugins/link/images/hidpi/anchor.png )
Rails.application.config.assets.precompile += %w( ckeditor/plugins/magicline/images/hidpi/icon.png )
Rails.application.config.assets.precompile += %w( ckeditor/plugins/magicline/images/icon.png )
Rails.application.config.assets.precompile += %w( ckeditor/plugins/pagebreak/images/pagebreak.gif )

Rails.application.config.assets.precompile += %w( ckeditor/plugins/preview/preview.html )
Rails.application.config.assets.precompile += %w( ckeditor/plugins/scayt/LICENSE.md )

Rails.application.config.assets.precompile += %w( ckeditor/filebrowser/javascripts/jquery.endless-scroll.js )
....
....

I restart server again and again and I pray it could end. >_< Do I missing some config?

dieuit07 commented 10 years ago

Rails.application.config.assets.precompile += %w( ckeditor/*)

jappareti commented 10 years ago

I had the same issue. This should be added to the Installation in the Read Me:

Add this to config/initializers/assets.rb: Rails.application.config.assets.precompile += %w( ckeditor/*)

JDutil commented 10 years ago

Would you mind submitting a pr?