Closed Bug 426698 Opened 16 years ago Closed 13 years ago

Hitting 'enter' in designMode causes the outer page to scroll

Categories

(Tech Evangelism Graveyard :: English US, defect)

x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: subs, Unassigned)

References

()

Details

(Keywords: regression)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5

Visit the example URL, resize the vertical height of the window until you get a scrollbar, then scroll the page down to the bottom. Type something into the rich text editor and the hit 'enter'. The entire page will scroll back up.

Reproducible: Always
Regression window is
http://bonsai.mozilla.org/cvsquery.cgi?module=PhoenixTinderbox&date=explicit&mindate=1199708400&maxdate=1199713799
Seems caused by Bug 332246.
Blocks: 332246
Status: UNCONFIRMED → NEW
Component: General → Editor
Ever confirmed: true
Keywords: regression
Product: Firefox → Core
QA Contact: general → editor
Version: unspecified → Trunk
I've investigated this:
In tiny_mce.js, there is the insertPara function there is the (only one) mention of scrollIntoView(0).

That's exactly what has changed in bug 332246, scrollIntoView(0) (or false) has been changed to do what IE is doing also.

Now, IE doesn't show the problem on that site, because it's not following that code path:
if(!isIE&&s.force_p_newlines){ed.onKeyPress.add(function(ed,e){if(e.keyCode==13&&!e.shiftKey){if(!t.insertPara(e))Event.cancel(e);}});

Tinmymce should change their code to scrollIntoView(1), that would give the desired behavior.
Assignee: nobody → english-us
Component: Editor → English US
Product: Core → Tech Evangelism
QA Contact: editor → english-us
Version: Trunk → unspecified
This is apparently solved in TinyMCE by completely removing scrollIntoView (!).
So I guess it's just a matter of waiting before the examples get updated.
FCKEditor has the same problem:

http://www.fckeditor.net/demo

I've filed a ticket:

http://dev.fckeditor.net/ticket/2086

I'm not sure if other designMode editors would also have problems?
Yeah, it seems very likely that FCKEditor has the same problem. I also saw scrollIntoView(false) being used in fckeditorcode_gecko.js.
INCOMPLETE due to lack of activity since the end of 2009.

If someone is willing to investigate the issues raised in this bug to determine whether they still exist, *and* work with the site in question to fix any existing issues, please feel free to re-open and assign to yourself.

Sorry for the bugspam; filter on "NO MORE PRE-2010 TE BUGS" to remove.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INCOMPLETE
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.