document.write('"); w.write(""); // Main DIV w.write("
"); // Search DIV w.write("
"); w.write(wpReplaceStrings.search); w.write(""); w.write("
"); // Replace DIV w.write("
"); w.write(wpReplaceStrings.replace); w.write(""); w.write("
"); // Test input DIV w.write("
"); w.write(""); w.write("
"); // Test output DIV w.write("
"); w.write(""); w.write("
"); // Options DIV w.write("
"); w.write(""); w.write("
"); w.write(""); w.write(" "); w.write("
"); w.write(""); // Buttons DIV w.write("
"); w.write(""); w.write(""); w.write(" "); w.write(""); w.write(""); w.write(""); w.write(""); w.write("
"); // Page ending w.write("
"); w.write(""); w.close(); return; // Obsolete (will be deleted) var s = prompt("Search regexp:"); if(s){ var r = prompt("Replace /"+s+"/ with:"); if(r==null) { alert(r); return; } var txt = document.editform.wpTextbox1; txt.value = txt.value.replace(new RegExp(s, "mg"), r); } } addOnloadHook(function () { if (document.forms.editform) { addPortletLink('p-cactions', 'javascript:wpTextboxReplace()', wpReplaceStrings.replaceTabTitle, 'ca-replace', 'Regexp replace for the edit window', 'R', document.getElementById('ca-history')); } });