Closed Bug 103213 Opened 24 years ago Closed 23 years ago

Inserting a character should not discontinue text styles

Categories

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

defect

Tracking

()

VERIFIED FIXED
mozilla1.0

People

(Reporter: TucsonTester2, Assigned: mozeditor)

References

Details

(Keywords: embed, Whiteboard: EDITORBASE+; [adt2 RTM]; FIX IN HAND [Needs re-approval])

Attachments

(1 file)

Build ID: 20011003 If you insert a character or symbol into a line of text that has text styles applied, then once you begin typing the text style will be discontinued. Reproducible: Always Steps to Reproduce: 1.Open composer 2.Click on the bold button on the toolbar and type some text 3.Click on insert -> Characters and Symbols 4.Choose a character, insert it, and close the window 5.Type some more text Actual Results: The bold style is discontinued. The text style is preserved in NS 4.x. Expected Results: I would expect that the text style would be preserved.
EDITORBASE bug, that shouldn't happen
Assignee: syd → cmanske
Whiteboard: EDITORBASE
Joe: We're using nsHTMLEditor::InsertHTML to insert the character. Should that discontinue inline styles around the insert?
Assignee: cmanske → jfrancis
Component: Editor: Composer → Editor: Core
confirmed Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.5+) Gecko/20011113 TucsonTester: These are great testcases you're giving us, keep it up!!! :)
Status: UNCONFIRMED → NEW
Ever confirmed: true
InsertHTML() is indeed the culprit. It's primary use is for paste, where we decided to preserve the style (or non-style) of the inserted html and override the style of the target document. I will have to add an arg, or make a parallel api point for insertion that keeps target style.
Status: NEW → ASSIGNED
Whiteboard: EDITORBASE → EDITORBASE; 1 day
Target Milestone: --- → mozilla0.9.9
Text style does not continue after highlighting text and selecting a text style beyond the first line. Build ID: 2001120303 1.Open a blank page in the editor 2.Enter text then highlight 3.Change the style (Bold/Italic/Underline) 4.Insert cursor directly after that text 5.Enter more text/Verify that the new text retained the style selected 6.Deselect the text style and hit the enter key 7.Enter text then highlight 8.Change the style (Bold/Italic/Underline) 9.Insert cursor directly after that text 10.Enter more text Actual Results: The text style is discontinued on the second line of text. Expected Results: I would expect that the text style would be continued just as it did on the first line in the body. Note: If you do not enter any text on the first line (just hit the enter key) you get the same results - the text style does not continue.
Priority: -- → P2
plussing
Whiteboard: EDITORBASE; 1 day → EDITORBASE+; 1 day
Keywords: nsbeta1+
I'm assuming TucsonTester1 meant to open a new bug against comment #5, rather than placing it here. opening bug 124805 for that.
1.1
Target Milestone: mozilla0.9.9 → mozilla1.1
Keywords: topembed
Bulk moving all nsbeta1+ bugs which were targetted after Mozilla1.0 to Mozilla1.0
Target Milestone: mozilla1.1 → mozilla1.0
Keywords: topembedtopembed+
pri = 2 for original 1.0 EB+ bugs
Whiteboard: EDITORBASE+; 1 day → EDITORBASE+; 1 day [adt2]
Whiteboard: EDITORBASE+; 1 day [adt2] → EDITORBASE+; 1 day [adt3]
Keywords: topembed+embed
Attached patch patch v1.0Splinter Review
Am I totally out of sense of is this trivial one-liner patch the good answer to the problem ? I tested the thing and it works just fine but I need Charley's or Kathy's sharp eye to control it, thanks.
Whiteboard: EDITORBASE+; 1 day [adt3] → EDITORBASE+; [adt3]; FIX IN HAND ,need r=; sr=; a=
helping Kevin's queries with tag in summary line
Summary: Inserting a character should not discontinue text styles → [PATCH] Inserting a character should not discontinue text styles
Comment on attachment 78170 [details] [diff] [review] patch v1.0 r=brade
Attachment #78170 - Flags: review+
Attachment #78170 - Flags: superreview+
Whiteboard: EDITORBASE+; [adt3]; FIX IN HAND ,need r=; sr=; a= → EDITORBASE+; [adt3]; FIX IN HAND ,needs a=
I need this fix, since my first name contain a 'å' character. I am willing to check it in, everyone OK with this?
adt1.0.0
Heh. Daniel, as soon as you said you had a one liner, I knew what it had to be. :-) Forest and Trees!
Removing adt1.0.0. Pls land this on the trunk, and let it bake for a couple of days. If there are no regressions, and QA approves, pls renominate.
Keywords: adt1.0.0
Whiteboard: EDITORBASE+; [adt3]; FIX IN HAND ,needs a= → EDITORBASE+; [adt3 RTM]; FIX IN HAND ,needs a=
Checked in into trunk, as requested. Sujay, could you please verify it ? thanks.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Summary: [PATCH] Inserting a character should not discontinue text styles → Inserting a character should not discontinue text styles
Verified on 04-11 trunk build.
Status: RESOLVED → VERIFIED
adt1.0.0
Keywords: adt1.0.0
marking adt1.0.0- and raising impact. Let's look at this again for RTM.
Keywords: adt1.0.0adt1.0.0-
Whiteboard: EDITORBASE+; [adt3 RTM]; FIX IN HAND ,needs a= → EDITORBASE+; [adt2 RTM]; FIX IN HAND ,needs a=
adding adt1.0.0+. Please get drivers approval again since it's been more than 3 days and then check into the 1.0 branch.
Keywords: adt1.0.0-adt1.0.0+
Blocks: 143047
Whiteboard: EDITORBASE+; [adt2 RTM]; FIX IN HAND ,needs a= → EDITORBASE+; [adt2 RTM]; FIX IN HAND [Needs re-approval]
Adding adt1.0.1+ for adt approval for branch checkin for the 1.0.1 milestone. Please get drivers approval before checking in.
Keywords: adt1.0.0+adt1.0.1+
marking adt1.0.1- per adt. This feature is not frequently used and there is a work aroun.
Keywords: adt1.0.1+adt1.0.1-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: