I have become tired of copy & paste when I want to quote a few words or lines from a previous post. The built-in quote function is not very helpful either.
So I created this bookmarklet to make quoting VERY easy!
Create a bookmark with the following URL:
Code: Select all
javascript:(function(){ if(!document.forms.postmodify){alert('This bookmarklet only works when posting in Joomla Forum!');return;}var txt = ''; if (window.getSelection) { txt = window.getSelection(); } else if (document.getSelection) { txt = document.getSelection(); } else if (document.selection) { txt = document.selection.createRange().text; } else return; replaceText('[quote]' + txt + '[/quote]', document.forms.postmodify.message); })()
When you later want to quote something, all you have to do is:
- Place the cursor where you want the quote
- Select the piece of text you want to quote. You must select outside the textfield you're writing in, ie. down the page where the rest of the thread is!
- Click on the bookmarklet!
Now, that is quite cool, uh?
Ps. It probably doesn't work in IE.