fix for bug #249882
after forward as inline with body style, the next new message gets the body style (cached compose) r=neil, sr=bienvenu, a=sspitzer for 1.8a2 git-svn-id: svn://10.0.0.236/trunk@159168 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
f14062d42c
commit
ddea88f8f7
@ -678,12 +678,10 @@ function EditorResetFontAndColorAttributes()
|
||||
if (bodyelement)
|
||||
{
|
||||
var editor = GetCurrentEditor();
|
||||
editor.removeAttributeOrEquivalent(bodyelement, "text", true);
|
||||
editor.removeAttributeOrEquivalent(bodyelement, "bgcolor", true);
|
||||
bodyelement.removeAttribute("link");
|
||||
bodyelement.removeAttribute("alink");
|
||||
bodyelement.removeAttribute("vlink");
|
||||
editor.removeAttributeOrEquivalent(bodyelement, "background", true);
|
||||
// remove all the existing attributes on the body element
|
||||
// by creating a dummy body element and cloning the attributes
|
||||
// see bug #249882 for more details
|
||||
editor.cloneAttributes(bodyelement, editor.document.createElement("body"));
|
||||
}
|
||||
gColorObj.LastTextColor = "";
|
||||
gColorObj.LastBackgroundColor = "";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user