#2531: Scroll Into View Bug When Breaking Large Content (FF)
---------------------+------------------------------------------------------
 Reporter:  dshafik  |       Owner:     
     Type:  Bug      |      Status:  new
 Priority:  Normal   |   Milestone:     
Component:  General  |     Version:     
 Keywords:           |  
---------------------+------------------------------------------------------
 If you paste a large amount into the editor, where you end up with:

 <p>
 some large text
 <br />
 paragraphs aren't there anymore
 </p>

 And you wish to put the paragraphs in to make it look like:

 <p>
 some large text
 </p>
 <p>
 paragraphs aren't there anymore
 </p>

 It will scroll the end of the second paragraph into view, which when the
 end is far enough away, will push
 the cursor off-screen, which can be confusing (why did I jump to the
 bottom?).

 If you continue to type, it'll start typing where the cursor is, not where
 the eye is, scrolling that back into
 view.

 The lines that cause the issue are fckenterkey.js lines 538/539:

 source:FCKeditor/trunk/editor/_source/classes/[EMAIL PROTECTED]

 I initially just commented this out, but then when you want to put in a
 new paragraph at the end, it will not scroll that into view.

 It seems to me that it should scroll when the paragraph is empty, but not
 otherwise, adding a FCKDomTools.CheckIsEmptyElement() will not work
 however, as we actually have:

 <p>
 <br _moz_dirty="">
 <br type="moz">
 </p>

 Some changes to the CheckIsEmptyElement() however will solve this (see
 patch).

 This does not ''completely'' solve the issue. When pressing enter with an
 "empty" paragraph being add, it will work fine. When pressing enter with a
 non-empty paragraph following, it works fine so long as it's not at the
 bottom of the view area, because then it doesn't scroll and should.

 This is a little better, but not complete. The best solution would be to
 move to the '''top''' of the paragraph, not the bottom. Is this possible?

 - Davey

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2531>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to