OscarGodson / EpicEditor

EpicEditor is an embeddable JavaScript Markdown editor with split fullscreen editing, live previewing, automatic draft saving, offline support, and more. For developers, it offers a robust API, can be easily themed, and allows you to swap out the bundled Markdown parser with anything you throw at it.
http://epiceditor.com
MIT License
4.25k stars 334 forks source link

Firefox: texarea does not load until the page is refreshed #280

Closed AJ-Acevedo closed 11 years ago

AJ-Acevedo commented 11 years ago

Any ideas why the text area does not load in Firefox until the page is manually refreshed with a Rails app? It works just fine in Chrome and Safari.

Firefox 23 Rails 4.0.0

When I Inspect Element, the Net tab shows that the css files are not loading until the page gets refreshed.

Here's a screen shot: epiceditor-bug

OscarGodson commented 11 years ago

Does the same JS code work outside of rails?

AJ-Acevedo commented 11 years ago

Yup just tested it using the the HTML 5 boiler plate and Firefox 18 and Firefox 23. Worked just fine.

OscarGodson commented 11 years ago

Huh, I don't really do any Rails stuff, but could it be that the file just isn't loading? If you're using an asset pipeline, is it in the compiled JS? Does EpicEditor.version work if you type it in the console? If EpicEditor.version works, is it just that the CSS isn't loading and there's actually a white box you can type into?

AJ-Acevedo commented 11 years ago

Strange thing is it works fine in Safari and Chrome. And when you refresh in Firefox it works fine. I'm going to attribute this issue to a Rails asset pipeline or caching issue as the server logs show that on refresh (when it works) the assets are all loaded again and not from cache. I'm going to extract EpicEditor from my project into a Rails gem and get it working right with the asset pipeline. You have an awesome project. Looking forward to contribute back to the project.

OscarGodson commented 11 years ago

I believe someone actually made a gem. Might be out of date tho. And yes, all contributions welcome :)

OscarGodson commented 11 years ago

Actually, yeah, looks like it was a rails-epiceditor and it's mega out of date.

Added your version here: https://github.com/OscarGodson/EpicEditor/wiki/EpicEditor-Implementations