зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
cb2d83cc60
Коммит
9dcdae633e
|
@ -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 = "";
|
||||
|
|
Загрузка…
Ссылка в новой задаче