I am using WYMEditor on my forum and users have the ability to "quote" messages of others. In such cases WYMEditor is loaded with content wrapped in blockquote tag.
Unfortunately usually the contents of the quote take more space than the input box size and when users click on the box end up entering their text inside the blockquote. This results in messy messages.
What I want is to scroll the contents of WYMEditor to the bottom, put cursor in the end and focus on the wym box. Unfortunately there is no such functionality in the WYMEditor api. There are some undocumented functions that provide selection management in the source, but my JavaScript/jQuery skills are not good enough to utilize them - I've tried but failed.
A combination of the
postInit
option and the jQueryscrollTop
function should do the trick. I would also recommend inserting a placeholder paragraph for them along with scrolling to the bottom. For example: