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.
Modified markdown.editor.js PanelCollection function to grab the inpu…
…t element from the DOM based on class name rather than ID, so it doesn't interfere with Rails ID-centric parameter passing.
tested and working