rem: var cmd = document.getElementById("cmd_highlight"); if (cmd) { var prefs = GetPrefs(); var useCSS = prefs.getBoolPref(prefName); 
add: if (editor) editor.isCSSEnabled = useCSS; } } else if (prefName.substr(0, kEditorToolbarPrefs.length) == kEditorToolbarPrefs) { var id = prefName.substr(kEditorToolbarPrefs.length) + "Button"; var button = document.getElementById(id); if (button) { button.hidden = !gPrefs.getBoolPref(prefName); ShowHideToolbarSeparators(button.parentNode); } } else if (prefName.substr(0, kCRInParagraphsPref.length) == kCRInParagraphsPref) { var crInParagraphCreatesParagraph = gPrefs.getBoolPref(prefName); 
context:   observe: function(subject, topic, prefName)  {    if (!IsHTMLEditor())      return;    // verify that we're changing a button pref    if (topic != "nsPref:changed") return;    if (prefName.substr(0, this.domain.length) != this.domain) return;    var cmd = document.getElementById("cmd_highlight");    if (cmd) {      var prefs = GetPrefs();      var useCSS = prefs.getBoolPref(prefName);      var editor = GetCurrentEditor();      if (useCSS && editor) {        var mixedObj = {};        var state = editor.getHighlightColorState(mixedObj);        cmd.setAttribute("state", state);        cmd.collapsed = false;      }            else {        cmd.setAttribute("state", "transparent");        cmd.collapsed = true;      }      if (editor)        editor.isCSSEnabled = useCSS;    }  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/2e66280faef73e9be218e00758d4eb738395ac83/editor.js/clean/editor/ui/composer/content/editor.js