Closed Bug 46474 Opened 26 years ago Closed 24 years ago

starting a new block kills off style selections

Categories

(Core :: DOM: Editor, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.9

People

(Reporter: mozeditor, Assigned: glazou)

References

Details

(Keywords: helpwanted, topembed+, Whiteboard: EDITORBASE+; 3 days;)

Attachments

(1 file, 1 obsolete file)

start a new block when editing (like making a new paragraph, list item, etc, all doable from typing) casues any style choices (font, bold, etc) to revert to their defaults for the new block. We should hold on to the users style if they are creating new blocks just by typing.
accept
Status: NEW → ASSIGNED
Target Milestone: --- → M17
nominating for b3
Keywords: nsbeta3
Add correctness and nsbeta3+
Keywords: correctness
Whiteboard: nsbeta3+
Whiteboard: nsbeta3+ → [nsbeta3+]
setting priority in status whiteboard
Whiteboard: [nsbeta3+] → [nsbeta3+][p:3}
Whiteboard: [nsbeta3+][p:3} → [nsbeta3+][p:3]
m18
Target Milestone: M17 → M18
setting to future and adding helpwanted Need to triage bugs to meet the glidepath for pr3
Keywords: helpwanted
Whiteboard: [nsbeta3+][p:3] → [nsbeta3-][p:3]
Target Milestone: M18 → Future
moz 0.9
Target Milestone: Future → mozilla0.9
moving a bunch of 0.9 bugs to 0.9.1
Target Milestone: mozilla0.9 → mozilla0.9.1
*** Bug 72546 has been marked as a duplicate of this bug. ***
Target Milestone: mozilla0.9.1 → mozilla0.9.2
Keywords: nsbeta3
Whiteboard: [nsbeta3-][p:3]
just a note to look at bug 68795 (hitting return and terminating format) we just need to ensure that the nesting is legal HTML
Target Milestone: mozilla0.9.2 → mozilla1.0
097
Target Milestone: mozilla1.0 → mozilla0.9.7
*** Bug 84192 has been marked as a duplicate of this bug. ***
Whiteboard: EDITORBASE; 3 days;
*** Bug 102528 has been marked as a duplicate of this bug. ***
*** Bug 103754 has been marked as a duplicate of this bug. ***
Target Milestone: mozilla0.9.7 → mozilla0.9.9
triage team plussing
Whiteboard: EDITORBASE; 3 days; → EDITORBASE+; 3 days;
Keywords: nsbeta1+
Ok, got it : 1) launch composer (HTML or CSS mode, does not matter) 2) switch to AllTags mode 3) enter "aaaa" 4) select "Paragraph" from toolbar's pulldown menu 5) click on B and I buttons 6) enter "bbbb" 7) hit twice the Enter key It creates a new paragraph, with the two nested stylistic elements (B and I in HTML mode, two spans in CSS mode) and the caret is **before** the elements, but should be of course inside !
Attached patch patch v1.0 (obsolete) — Splinter Review
Joe, I took this one from your plate. Can you review it please ?
I think we may need more. For instance: creating new list items via return; breaking out of header via return.
another scenario that needs to be dealt with: user chooses inline style on blank line, then chooses {indent/paragraph-style/list}. We should hold on to the style.
Comment on attachment 68140 [details] [diff] [review] patch v1.0 this patch is good, but don't close out the bug when landing it. We have more to do.
Attachment #68140 - Flags: review+
I have incorporated Daniels work into bug 98286, which fixes other problems in the same routine...
Comment on attachment 68140 [details] [diff] [review] patch v1.0 obsoleted by patch in 98286; but we still need to fix other issues I raised in earlier comment so we can't close bug
Attachment #68140 - Attachment is obsolete: true
if this will reproduce in the embedded editor case, it is also topembed
Keywords: topembed
*** Bug 115287 has been marked as a duplicate of this bug. ***
Keywords: topembedtopembed+
Reassigning to daniel
Assignee: jfrancis → glazman
Status: ASSIGNED → NEW
Fix in hand for list case :-) Will attach it monday morning since I really have to go home for now.
Status: NEW → ASSIGNED
Joe, is this the right approach for fixing the list case ? It works fine but I need your views on the problem.
Comment on attachment 72402 [details] [diff] [review] work-in-progress #1 Daniel, this is exactly the kind of thing I think needs to happen. There are several places to put this kind of thing: ReturnInHeader(), ReturnInParagraph(), and ReturnInListItem(). In the last case, we also want to preserve the style when you use return to "kill" a list and pop out to a higher list level (or to the enclosing non-list block).
Attachment #72402 - Flags: review+
Attachment #72402 - Flags: superreview+
removing myself from the cc list
Comment on attachment 72402 [details] [diff] [review] work-in-progress #1 a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #72402 - Flags: approval+
patch in attachment 72402 [details] [diff] [review] checked in ; IRC discussion with Joe about attachment 68140 [details] [diff] [review] because I still see the original problem.
checked in ; other issues spun off in different bugs by Joe.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
verified in 4/23 trunk build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: