Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top