Open Bug 681618 Opened 13 years ago Updated 3 years ago

Consistent font size control over all message text

Categories

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

x86_64
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: dmccammishjr, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0) Gecko/20100101 Firefox/7.0
Build ID: 20110816154714

Steps to reproduce:

Select block of text including pasted items and new text.   Tried to change all to a single font and size.   


Actual results:

Sometimes it works.   Sometimes it works on parts of the text.  


Expected results:

Prefer to be able to set a font (typeface), style, and size and have all selected characters change to that specification.   Not + or - size.   Not dependent on encoding.
Doug can you play a bit more and figure out exactly when it doesn't work and tell us how to make it not working ?
I have tried to artificially create the problem without success.  I'll watch for it to happen and capture the email body, etc.  I tried text I created and sent to myself, then replied and changed the text size.  I also tried copying in some text surrounded by my text.   

I note that my original description was in error/not complete.  There are two cases:
1.  Select a body of text and increase/decrease all sizes (e.g., 8 pt becomes 10 and 10 becomes 12 or whatever).  That's what seems to work in my recent testing.

2.  Different problem - copy text from somewhere and try to make that copied text the same style and size as the rest of the body.  Or, select the whole body and try to make it a common size and style.   No current straightforward way to do that as far as I can tell.
I have been able to recreate one circumstance.

If I begin a line of text and then decide I want that text larger, and then select the text with the mouse, increase the size, and then use the "end" key to move to the end of that larger text and resume typing, the newly typed text is the old small size.  This is an irritant, but avoidable by using ctrl-a to select All the text rather than the mouse.  It **appears* that selecting the text with a mouse and then changing the size of the selected text leaves the "current" text size at the end of the string unchanged.

I also managed to lose the cursor while testing.
I guess it is fairly simple.  The editor doesn't select the final space when the selection is done by mouse and the ending </big> HTML is bypassed when the cursor is placed at the end of the line.

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <big><big><big><big><big>Now is the time </big></big></big>for all
        good men.</big></big> to come to the aid.<br>
  </body>

</html>

All this is minor stuff compared to part 2 above, in which the *desire* is to select a bunch of text and declare it to be some height and style, no matter the current height and style.
(In reply to doug2 from comment #4)
> I guess it is fairly simple.  The editor doesn't select the final space when
> the selection is done by mouse and the ending </big> HTML is bypassed when
> the cursor is placed at the end of the line.
> 
> <html>
>   <head>
>     <meta content="text/html; charset=ISO-8859-1"
>       http-equiv="Content-Type">
>   </head>
>   <body bgcolor="#FFFFFF" text="#000000">
>     <big><big><big><big><big>Now is the time </big></big></big>for all
>         good men.</big></big> to come to the aid.<br>
>   </body>
> 
> </html>
> 
> All this is minor stuff compared to part 2 above, in which the *desire* is
> to select a bunch of text and declare it to be some height and style, no
> matter the current height and style.

Thanks for the analysis - does this also happens on http://www.mozilla.org/editor/midasdemo/ ?
I like the demo.  It gives me better and more consistent control of text.  I can select text of multiple sizes and make them all the same new size.

However, the same thing does happen in the demo because no matter what selection method is used, you can't select the trailing blank which means you can't select the trailing HTML </font>.  

If I type "Now is the time for all" and select it and change the text size to 5 and then place my cursor at the end of that line and type some more, the new characters are at size 1.  What I expected was for my new characters to be at size 5.  Moving the cursor to the end of the line puts it after the </font> instead of before it.
Component: Message Compose Window → Editor
Product: Thunderbird → Core
QA Contact: message-compose → editor
Version: 6 → unspecified

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.