kreativgebiet / rich

:money_with_wings: An opinionated CKEditor editor for Rails with flexible image uploads
MIT License
418 stars 238 forks source link

Rich 0.0.8 editor doesn't load in IE <= 9 post asset compilation #15

Open whitecl opened 12 years ago

whitecl commented 12 years ago

Hi there and thanks for making Rich, I really like it!

Running into an issue with my project https://github.com/whitecl/devotion-cms

In development mode, all versions of IE load the rich editor with no problems. However in production mode, IE <= 9 does not work correctly. The textarea element is not converted into an editor, but no Javascript errors are thrown. Production mode works fine in all non-IE browsers.

Is there any additional troubleshooting data I can provide to help?

bastiaanterhorst commented 12 years ago

Hi, Thanks for reporting this; I will look into is. I see that in your project, you've worked around it by duplicating your development configuration. This leads me to believe there is a precompilation problem.

I'll look into it asap and get back to you. If you find anything in the meantime, please do let me know.

Best, Bastiaan

bastiaanterhorst commented 12 years ago

I finally had a chance to look into this, but to be honest I have no clue what is going on. Unfortunately, I also have little time to dig deeper. Have you made any progress?

whitecl commented 12 years ago

Hi Bastiaan, thanks for looking into this. We'll be doing a renewed dev cycle on this project sometime in the next few weeks. I'll do some investigating as well on the issue.

I'm also going to try to bring Rich up-to-date in our project, I'll let you know if the issue persists in newer versions.

kim3er commented 12 years ago

Hi, I'm having the same problem, using the latest stable version.

bastiaanterhorst commented 12 years ago

Yeah, unfortunately this is not fixed yet.

kim3er commented 12 years ago

Thanks for the response. I've just found an Issue on the CKEditor gem that suggests turning compression off as a workaround. It's not ideal but as my target audience is on an Intranet, so it should be fine.

https://github.com/galetahub/ckeditor/issues/121

kim3er commented 12 years ago

Switching off compression fixes the problem, but it obviously not ideal. As per the link I post above this issue has been resolved in the CKEditor gem.

bastiaanterhorst commented 12 years ago

Have you been able to distill what the exact problem is? The commit mentioned in the Ckeditor issue touches many files and doesn't mention this exact issue.

kim3er commented 12 years ago

I have managed to detect the problem to the point that I can fix it. But the crux of it is that some aspect of the CK Editor source when compressed produces a senario whereby IE just stop parsing the file. My assumption is that this has been resolved in CKEditor core rather than the GEM, but I have no confirmation of this.

I don't have the capacity in this project to investigate much further, but it'll be top of my list next time I incorporate Active Admin on a public facing site.

Aside from this minor blip, this gem has been incredibly useful. Thank you.

stonehz commented 11 years ago

The problem still exists... any updates or any ways how to fix it?.. Thank you in advance!

bastiaanterhorst commented 11 years ago

Unfortunately I'm not aware of a fix..