mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-06 12:43:53 +00:00
Fixed not clearing font color ('defaul') bug 89700, r=akkana, sr=kin
This commit is contained in:
parent
449476cffa
commit
2a81718082
@ -950,7 +950,10 @@ function EditorSelectColor(colorType, mouseEvent)
|
||||
{
|
||||
if (currentColor != gColorObj.TextColor)
|
||||
{
|
||||
window.editorShell.SetTextProperty("font", "color", gColorObj.TextColor);
|
||||
if (gColorObj.TextColor)
|
||||
window.editorShell.SetTextProperty("font", "color", gColorObj.TextColor);
|
||||
else
|
||||
window.editorShell.RemoveTextProperty("font", "color");
|
||||
}
|
||||
// Update the command state (this will trigger color button update)
|
||||
goUpdateCommand("cmd_fontColor");
|
||||
|
Loading…
Reference in New Issue
Block a user