rem: var text = dialog.linkTextInput.value.trimString(); SetElementEnabledById( "ok", (text.length > 0)); 
add: var enable = true; if (insertLinkAtCaret) enable = dialog.linkTextInput.value.trimString().length > 0; if (enable) enable = dialog.hrefInput.value.trimString().length > 0; SetElementEnabledById( "ok", enable); 
context: function ChangeText(){  if (insertLinkAtCaret)  {    var text = dialog.linkTextInput.value.trimString();    SetElementEnabledById( "ok", (text.length > 0));  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/030de906de67de8bf4262d3a3d3be61891b65c21/EdLinkProps.js/clean/editor/ui/dialogs/content/EdLinkProps.js