문제

I am using the ckeditor gem and i am using it on one page of my website. When i use Apple Safari's web inspector I am noticing that ckeditor resources are loading on every page. Any ideas on how to limit this. I'm running it in development mode

도움이 되었습니까?

해결책

You should add more details if you want help here. For example:

  • Which gem are you using?
  • What procedure have you used to include ckeditor?
  • Which Rails version are you using?

Anyway I guess you placed the //=require ckeditor instruction in your application.js file, which is include in the layout view, so in every page of your app, if you didn't change the layout settings.

You just need to move the instruction in another .js file and include it just in the page where you need ckeditor.

See this gem documentation for more information.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top