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)
Core
DOM: Editor
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)
|
693 bytes,
patch
|
Brade
:
review+
kinmoz
:
superreview+
jesup
:
approval+
|
Details | Diff | Splinter Review |
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
Comment 2•24 years ago
|
||
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
Comment 3•24 years ago
|
||
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
| Assignee | ||
Comment 4•24 years ago
|
||
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
Comment 5•24 years ago
|
||
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.
| Assignee | ||
Comment 7•23 years ago
|
||
I'm assuming TucsonTester1 meant to open a new bug against comment #5, rather
than placing it here. opening bug 124805 for that.
Comment 9•23 years ago
|
||
Bulk moving all nsbeta1+ bugs which were targetted after Mozilla1.0 to Mozilla1.0
Target Milestone: mozilla1.1 → mozilla1.0
Updated•23 years ago
|
| Assignee | ||
Comment 10•23 years ago
|
||
pri = 2 for original 1.0 EB+ bugs
Updated•23 years ago
|
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.
Updated•23 years ago
|
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 13•23 years ago
|
||
Comment on attachment 78170 [details] [diff] [review]
patch v1.0
r=brade
Attachment #78170 -
Flags: review+
Comment 14•23 years ago
|
||
Attachment #78170 -
Flags: superreview+
Updated•23 years ago
|
Whiteboard: EDITORBASE+; [adt3]; FIX IN HAND ,need r=; sr=; a= → EDITORBASE+; [adt3]; FIX IN HAND ,needs a=
Updated•23 years ago
|
Attachment #78170 -
Flags: approval+
Comment 15•23 years ago
|
||
Comment 16•23 years ago
|
||
I need this fix, since my first name contain a 'å' character. I am willing to
check it in, everyone OK with this?
Comment 17•23 years ago
|
||
adt1.0.0
| Assignee | ||
Comment 18•23 years ago
|
||
Heh. Daniel, as soon as you said you had a one liner, I knew what it had to be.
:-) Forest and Trees!
Comment 19•23 years ago
|
||
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
Comment 23•23 years ago
|
||
marking adt1.0.0- and raising impact. Let's look at this again for RTM.
Comment 24•23 years ago
|
||
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.
Updated•23 years ago
|
Blocks: 143047
Whiteboard: EDITORBASE+; [adt2 RTM]; FIX IN HAND ,needs a= → EDITORBASE+; [adt2 RTM]; FIX IN HAND [Needs re-approval]
Comment 25•23 years ago
|
||
Adding adt1.0.1+ for adt approval for branch checkin for the 1.0.1 milestone.
Please get drivers approval before checking in.
Comment 26•23 years ago
|
||
marking adt1.0.1- per adt. This feature is not frequently used and there is a
work aroun.
You need to log in
before you can comment on or make changes to this bug.
Description
•