• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Browser-specific: Rich-text editor grabs focus and scrolls page

#1
I've encountered what appears to be an IE-specific issue. Particularly IE8, as I don't have other versions of IE handy to test. It is reproducible on xenforo.com.

On clicking any thread in which you have permission to reply, the new reply editor at the bottom of the page will grab focus and scroll the page down to it. This overrides any "first-unread" scrolling behavior that happens by default, so users cannot get straight to the first unread post on a page, and any new pages they click on, they must also scroll all the way to the top of the page manually.

If the rich text editor is turned off or IE compatibility mode is used, this issue does not occur, but then the formatting buttons and smilie bar is not available.

Any way to fix this?

I've recommended that my users use another browser, but I can understand if somebody is still stuck in IE-land, they would have a pretty poor experience using my forum for this one seemingly minor defect

Thanks :)
 

Mike

XenForo developer
Staff member
#2
Looks like this is down to IE8 specific selection manipulation/detection. IE8 (and older) doesn't support any of the standard selection management systems. I've tweaked these to fix this issue and I don't think it's broken anything else but if anyone notices, do let us know.
 

AndyB

Well-known member
#3
Hi Mike,

Which version will this fix be released in? I'm running 1.2.0, is there a quick fix that we can do to this version?