rem: editor.removeAttributeOrEquivalent(bodyelement, "text", true); editor.removeAttributeOrEquivalent(bodyelement, "bgcolor", true); bodyelement.removeAttribute("link"); bodyelement.removeAttribute("alink"); bodyelement.removeAttribute("vlink"); editor.removeAttributeOrEquivalent(bodyelement, "background", true); 
add:    editor.cloneAttributes(bodyelement, editor.document.createElement("body")); 
context: function EditorResetFontAndColorAttributes(){  try {      document.getElementById("cmd_fontFace").setAttribute("state", "");    EditorRemoveTextProperty("font", "color");    EditorRemoveTextProperty("font", "bgcolor");    EditorRemoveTextProperty("font", "size");    EditorRemoveTextProperty("small", "");    EditorRemoveTextProperty("big", "");    var bodyelement = GetBodyElement();    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);    }    gColorObj.LastTextColor = "";    gColorObj.LastBackgroundColor = "";    gColorObj.LastHighlightColor = "";    document.getElementById("cmd_fontColor").setAttribute("state", "");    document.getElementById("cmd_backgroundColor").setAttribute("state", "");    UpdateDefaultColors();  } catch (e) {}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9dcdae633e35b12034b1c3a9f024fd9469858b0b/editor.js/clean/editor/ui/composer/content/editor.js