Closed
Bug 98286
Opened 23 years ago
Closed 23 years ago
Changing from body text to paragraph causes the caret to get stuck
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
mozilla0.9.9
People
(Reporter: TucsonTester2, Assigned: mozeditor)
Details
(Whiteboard: EDITORBASE+; 2 days; fixinhand; reviewed)
Attachments
(2 files)
1.57 KB,
patch
|
Details | Diff | Splinter Review | |
6.55 KB,
patch
|
glazou
:
review+
kinmoz
:
superreview+
|
Details | Diff | Splinter Review |
From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 95) BuildID: 2001083003 After changing from body text selection to paragraph text the cursor gets stuck and you are not able to tap the enter key and have the cursor move further down the page. Reproducible: Always Steps to Reproduce: 1.Open blank a composer page and change from body text to paragraph.Type a few lines of text tap enter 2 or 3 times 2.Change back to body text and type a few more lines of text tap enter 2 or 3 times 3.Change back to paragraph text and type a few more lines of text then try to tap enter multiple times. Actual Results: When you tap the enter key the cursor will not continue to go down the page it will only jump up and down. Expected Results: Expected to see the cursor move as far down the page as it could. If you go back to body text the cursor acts normally but going back to paragraph text you get the same reults. Using the arrow key doesn't move the cursor down either when you are on paragraph text but it will move it up.
Comment 1•23 years ago
|
||
-->jfrancis Joe--is this a bug for you or is it a selection bug?
Assignee: brade → jfrancis
Comment 2•23 years ago
|
||
Confirmed on Win2k using build 2001092405.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 3•23 years ago
|
||
probably me. 097
Status: NEW → ASSIGNED
Whiteboard: EDITORBASE; 2 days
Target Milestone: --- → mozilla0.9.7
Updated•23 years ago
|
Summary: Changing from body text to paragraph causes the cursor to get stuck → Changing from body text to paragraph causes the caret to get stuck
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.7 → mozilla0.9.9
This worksforme
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Comment 5•23 years ago
|
||
I am still seeing this problem on Win 2k using build 2001121703. I am reopening this bug. I have some easier steps to reproduce: 1. Open Composer 2. Choose "Paragraph" from the text style drop down 3. Type one line of text, and hit enter 3 times 4. Choose "Body Text" from the text style drop down 5. Type one line of text, and hit enter 3 times 6. Choose "Paragraph" from the text style drop down 7. Type one line of text, and hit enter 4 times Notice that the 4th time you hit enter, the caret jumps up.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Comment 6•23 years ago
|
||
This issue is also occuring on Mac OS X Build 2001121405.
Comment 7•23 years ago
|
||
Switching Platform and OS to all / all per above comments.
OS: Windows 95 → All
Hardware: PC → All
Assignee | ||
Updated•23 years ago
|
Whiteboard: EDITORBASE+; 2 days → EDITORBASE+; 2 days; fixinhand; need r-, sr=;
Assignee | ||
Comment 9•23 years ago
|
||
Assignee | ||
Comment 10•23 years ago
|
||
I took this opportunity to refactor ReturnInParagraph(). Kin and Daniel will have much easier lives now if they need to work with it! Common code for splitting the paragraph was factored out into a seperate routine. I discovered we were not always checking for empty paragraphs created by the split, so that is now fixed since the code is in one place instead of three. The only change that specifically applies to fixing this bug is in the new routine SplitParagraph(), and is the where we delete the break *if* it is visible. The bug was we were always deleting it before, which could lead to an empty paragraph, and since we weren't consistently repopulating empty paragraphs with br's, it would get deleted. also note that I have incorporated Daniel's work from bug 46474 here, albeit in a much simpler form. That is what the GetLeftmostChild() call is doing for us near the end of the patch: finding where we want to put selection.
Comment on attachment 68828 [details] [diff] [review] diffs for nsHTMLEditRules.cpp >+ *aHandled = PR_TRUE; >+ res = SplitParagraph(aPara, sibling, aSelection, address_of(selNode), &aOffset); ... >+ *aHandled = PR_TRUE; >+ res = SplitParagraph(aPara, sibling, aSelection, address_of(selNode), &aOffset); Alignment uses tabs instead of whitespaces. r=glazman
Attachment #68828 -
Flags: review+
Comment 12•23 years ago
|
||
Comment on attachment 68828 [details] [diff] [review] diffs for nsHTMLEditRules.cpp sr=kin@netscape.com With indentation fix mentioned by glazman.
Attachment #68828 -
Flags: superreview+
Whiteboard: EDITORBASE+; 2 days; fixinhand; need r-, sr=; → EDITORBASE+; 2 days; fixinhand; reviewed
Assignee | ||
Comment 13•23 years ago
|
||
fixed on tip
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•