tsechingho / ckeditor-rails

Integrate CKEditor javascript library with Rails asset pipeline
https://github.com/tsechingho/ckeditor-rails
MIT License
213 stars 132 forks source link

Icon positions are not correct in production #35

Closed rstammer closed 10 years ago

rstammer commented 10 years ago

All notes are due to a Rails 4 App.

Everything is fine in development mode, but in production the background-position of all item icons are seem to be "shifted" (see picture below).

image

Inspecting the buttons with firebug led me to the following css-class, e.g. for the "bold"-button:

.cke_button__bold_icon {
background: url(icons.png) no-repeat 0 -32px !important;
}

This seems to collide with some other class, since disabling the class .cke_button__bold_icon solves the problem and lets the button look nice.

Can anyone reproduce this?

Best wishes, Robin

maxmcd commented 10 years ago

I'm running into the same issue as well

Edit: Whoops, turned out I'm actually using this gem: https://github.com/galetahub/ckeditor and the solution for me was to rollback to version 4.0.4, although that's probably not too relevant in this repo

Sorry for the mixup

rstammer commented 10 years ago

Great news: using the latest version, the problem does not appear any longer.

TangMonk commented 9 years ago

same issue with 4.1.2, I am using Rails 4.2.3