rem: textareaElement.value = GetSelectionAsText(); 
add: gDialog.textareaValue.value = GetSelectionAsText(); 
context: function Startup(){  if (!InitEditorShell())    return;  gDialog = {    accept:             document.documentElement.getButton("accept"),    textareaName:       document.getElementById("TextAreaName"),    textareaRows:       document.getElementById("TextAreaRows"),    textareaCols:       document.getElementById("TextAreaCols"),    textareaWrap:       document.getElementById("TextAreaWrap"),    textareaReadOnly:   document.getElementById("TextAreaReadOnly"),    textareaDisabled:   document.getElementById("TextAreaDisabled"),    textareaTabIndex:   document.getElementById("TextAreaTabIndex"),    textareaAccessKey:  document.getElementById("TextAreaAccessKey"),    textareaValue:      document.getElementById("TextAreaValue"),    MoreSection:        document.getElementById("MoreSection"),    MoreFewerButton:    document.getElementById("MoreFewerButton")  };  // Get a single selected text area element  var tagName = "textarea";  textareaElement = editorShell.GetSelectedElement(tagName);  if (textareaElement)    // We found an element and don't need to insert one    insertNew = false;  else  {    insertNew = true;    // We don't have an element selected,    //  so create one with default attributes    textareaElement = editorShell.CreateElementWithDefaults(tagName);    if (!textareaElement)    {      dump("Failed to get selected element or create a new one!\n");      window.close();      return;    }    else      textareaElement.value = GetSelectionAsText();  }  // Make a copy to use for AdvancedEdit  globalElement = textareaElement.cloneNode(false);  InitDialog();  InitMoreFewer();  if ("@mozilla.org/preferences;1" in Components.classes) try {    var pref = Components.classes["@mozilla.org/preferences;1"];    pref = pref.getService(Components.interfaces.nsIPref);    var wrap = document.getElementById("wrap");    wrap.setAttribute("collapsed", pref.GetBoolPref("editor.dtd.strict"));  } catch (e) {}  SetTextboxFocus(gDialog.textareaName);    SetWindowLocation();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/839fd1768cc3e3d4445e01452908b6c9e7a601c3/EdTextAreaProps.js/clean/editor/ui/dialogs/content/EdTextAreaProps.js