atulmore777 / gwt-html-editor

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

Toolbar could show the style/size/bold/italic/etc of the text under cursor #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Toolbar could show the style/size/bold/italic/etc of the text under cursor.
For example, if the cursor is on top of some text of size 4, the combo box
could automatically select size 4.

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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
Here are some of my thoughts on making it happen:

Make the buttons into on/off toggles (Like Microsoft Word, for example) and 
leave the
combo box selected, giving the user a visual clue as to the specific formatting
currently in effect.  A mouseover hover style is already applied to the button, 
leave
it applied or make it a bit darker when clicked. (I find the hover style a 
little
faint on some of my PC screens.)  

The button part and combo boxes seem easy, but other things may not be.  For 
example
the ClearFormat/undo action seems to clear all formats.  That is, toggling off 
one
buttons would toggle all of them off.  Another is detecting the cursor moving 
into a
formatted span, so that relevent buttons can be turned on.  Pavel probably saw 
this
difficulty and did not want to go that deep on the first pass.

Danny

Original comment by dhho...@gmail.com on 10 Jan 2007 at 2:40