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
This commit is contained in:
sspitzer%mozilla.org 2004-07-14 04:27:31 +00:00
Родитель cb2d83cc60
Коммит 9dcdae633e
1 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -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 = "";