Forum Moderators: open
Can this be used to add a chunk of code to add a button to make quoting easier?
There's nothing a bit of JavaScript can't do.
<input type="button" value="Quick Quote" onclick="javascript:text=(document.all)? document.selection.createRange().text : document.getSelection();document.all.post.value = document.all.post.value + '[qu0te]' + text + '[/qu0te]';">
Replace "qu0te" with "quote" of course, disable style codes doesn't seem to work...
Then highlight text to be quoted and hit the button.
Only visible on the reply to post page...
<input name='qq' style='display:none' type="button" value="Quick Quote" onclick="javascript:text=(document.all)? document.selection.createRange().text : document.getSelection();document.all.post.value = document.all.post.value + '[qu0te]' + text + '[/qu0te]';"><script type='text/javascript'>var t=new String(window.location);if(t.indexOf("edpost",0)>0){document.all.qq.style.display="inline";}</script>