atulmore777 / gwt-html-editor

Automatically exported from code.google.com/p/gwt-html-editor
0 stars 0 forks source link

Is font style considered part of format? Clearing format does not reset font style #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It is more a design issue rather that a bug. Is font style considered part
of text format? Clearing format does not reset font style to Normal.

What steps will reproduce the problem?
1. Type some text and assign it a style other than Normal
2. Select the text and click 'Clear Format' button

What is the expected output?
- The font style resets to Normal

What do you see instead?
- The font style does not change

Original issue reported on code.google.com by Yegor.Jb...@gmail.com on 5 Jan 2007 at 5:29

GoogleCodeExporter commented 9 years ago
This is the normal behavior for clear format. Try ctrl+shift+space in 
OpenOffice or
MS Word -- it always leaves the font style intact, only effects alignment, 
colors,
bold/italic/underlined, etc.

Original comment by pave...@gmail.com on 5 Jan 2007 at 5:58

GoogleCodeExporter commented 9 years ago
I will check with OpenOffice later. ctrl+shift+space does not work in my MS 
Office
2003. When I select 'Clear Formatting' in Word it clears the style as well.

Original comment by Yegor.Jb...@gmail.com on 5 Jan 2007 at 8:21

GoogleCodeExporter commented 9 years ago
in Office it's ctrl+space. The 'Clear Formatting' in Office is a type of font 
style,
same thing as 'Normal'.

Original comment by pave...@gmail.com on 5 Jan 2007 at 8:32

GoogleCodeExporter commented 9 years ago
I'm not implying that we have to copy the functionality from MS Word, all the 
more so
that this button does not have a counterpart on Word's toolbar. It's just an
observation. It is a usability issue. We can decide whether text style IS or IS 
NOT
part of text formatting ourselves. Personally, I think it is.

(from my little research on MS Word) The 'Clear Formatting' is not a type of 
font
style, it's just a button. 'Normal', however, is and it can be changed to 
anything.
There are (at least) two ways for removing formatting in MS Word:

1. CTRL + SPACE - they call it "Remove manual character formatting". I don't 
believe
that this function has a corresponding button on the toolbar. It does not reset 
the
style.
2. 'Clear Formatting' - does what the latter does plus clears the text style as 
well.
It has some sort of a button on the toolbar hidden under the "Styles and 
Formatting"
combo.

Original comment by Yegor.Jb...@gmail.com on 5 Jan 2007 at 8:51

GoogleCodeExporter commented 9 years ago
In "Clear Formatting" (in Word and OpenOffice in Font Styles drop-down) "Clear" 
is an
adjective not a verb which makes it a font style, not a function.

Probably it would make sense to rename the our "Clear Formatting" button into 
"Remove
manual character formatting", because it corresponds to CTRL+[SHIFT+]SPACE and 
rename
"Normal" font style to "Clear Formatting". This way it'll look like both Word 
and
OpenOffice and we won't have to recode anything.

Original comment by pave...@gmail.com on 5 Jan 2007 at 9:13

GoogleCodeExporter commented 9 years ago

Original comment by pave...@gmail.com on 5 Jan 2007 at 9:42

GoogleCodeExporter commented 9 years ago

Original comment by pave...@gmail.com on 5 Jan 2007 at 10:10

GoogleCodeExporter commented 9 years ago

Original comment by pave...@gmail.com on 5 Jan 2007 at 10:12