Bug #246414 --> Drafts & Templates don't remember background and font colors
git-svn-id: svn://10.0.0.236/trunk@157807 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -3238,17 +3238,23 @@ function loadHTMLMsgPrefs()
|
||||
var bodyElement = GetBodyElement();
|
||||
try {
|
||||
textColor = pref.getCharPref("msgcompose.text_color");
|
||||
if (!bodyElement.getAttribute("text"))
|
||||
{
|
||||
bodyElement.setAttribute("text", textColor);
|
||||
gDefaultTextColor = textColor;
|
||||
document.getElementById("cmd_fontColor").setAttribute("state", textColor);
|
||||
onFontColorChange();
|
||||
}
|
||||
} catch (e) {}
|
||||
|
||||
try {
|
||||
bgColor = pref.getCharPref("msgcompose.background_color");
|
||||
if (!bodyElement.getAttribute("bgcolor"))
|
||||
{
|
||||
bodyElement.setAttribute("bgcolor", bgColor);
|
||||
gDefaultBackgroundColor = bgColor;
|
||||
document.getElementById("cmd_backgroundColor").setAttribute("state", bgColor);
|
||||
onBackgroundColorChange();
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user