javascript - Why is CKEDITOR not finding the icons for the editor in my rails production site? -
i using ckeditor , not showing icons in toolbar. here setup:
application.rb
config.assets.precompile += ckeditor.assets     config.autoload_paths += %w(#{config.root}/app/models/ckeditor)   application.js
//= require ckeditor/override //= require ckeditor/init   i using capistrano deploy code server. here getting when inspect missing icon:
element.style { background-image: url(/assets/ckeditor/plugins/icons-03589ffff0ab72dc57d667560eff4018.png); background-position: 0 -1440px; background-size: auto; } .cke_ltr .cke_button__newpage_icon { background: url(icons.png) no-repeat 0 -1440px !important; }   it looks compiling css correctly, when untick background: url(icons.png) no-repeat 0 -1440px !important; in inspector icon works.
any ideas great, struggling see doing wrong here
standard issue - it's rails not picking icons.png when you're deploying production server. got icons working using preceding tutorial:
#/lib/tasks/ckeditor.rake require 'fileutils'  desc "create nondigest versions of ckeditor digest assets" task "assets:precompile"   fingerprint = /\-[0-9a-f]{32}\./   file in dir["public/assets/ckeditor/**/*"]     next unless file =~ fingerprint     nondigest = file.sub fingerprint, '.'     fileutils.cp file, nondigest, verbose: true   end end   #config/environments/production.rb config.autoload_paths += %w(#{config.root}/app/models/ckeditor) config.assets.precompile += ckeditor.assets config.assets.precompile += %w(ckeditor/*)      
Comments
Post a Comment