rh/pagedown-rails — pull request #2 by lpeabody (2012-12-10 00:56:40+00:00)
Title: Changed Markdown.Editor.js to be friendly with Rails id-based parameter paradigm.

PageDown utilizes the ID attribute for particular elements in order to setup various "panels". One of these panels is the input panel. It grabs the id for a text area element and uses that as the markdown input.

The library expects a text area with the id of `wmd-input` to be the element which receives the markdown input from the user. This is problematic, especially if you want a particular model's field to be the markdown input (since it already has it's id assigned by Rails naming convention).

To fix this, I modified the PanelCollection function within Markdown.Editor. I changed the DOM element being searched for the input to match a particular class name rather than a particular id. This eliminates the id conflict with Rails' naming conventions.