foxreplace icon indicating copy to clipboard operation
foxreplace copied to clipboard

Firefox like Notepad

Open GoogleCodeExporter opened this issue 10 years ago • 0 comments

Incorporate FoxReplace into the following add-on BOOKMARK. The bookmark
launches a new window of FireFox that acts like notepad. It would be great
if FoxReplace worked with it.

javascript:(function(){s=document.selection?document.selection.createRange().tex
t:window.getSelection?window.getSelection().toString():document.getSelection?doc
ument.getSelection():'';pwin=window.open('','_blank','menubar=yes,scrollbars=yes
,location=no,height=500,width=600');with(pwin.document){if(s){write(s);close();}
body.contentEditable='true';designMode='on';}if(window.focus){pwin.focus();setTi
meout('pwin.focus()',125)};void(0);})()

Original issue reported on code.google.com by [email protected] on 14 Dec 2009 at 3:58

GoogleCodeExporter avatar Aug 21 '15 18:08 GoogleCodeExporter