![]() |
copy to clipboard posts/threads after posting (Basic/Standard) editors
This Mod isn't supported any more!
Oh no! I just finished writting that long long post and the page didn't load. I wish I would have made a copy in notepad. Too late for that. I won't write it again. After hearing that a couple hundred times I wrote this hack. When using Internet Explorer once you finished writing your post just double click any where inside the text area & whole your post will be copied to the clipboard, meaning that if the page doesn't load then you just press back in your browser, paste, and submit it again. Since most of us users forget to do a backup copy just in case this comes in handy. Note: works on both Basic/Standard editors & it doesn't work on wysiwyg editor (i'll try to update it to work on wysiwyg editor but not now) (screenshots?) I don't know how I would take screenshots for that. :) its very simple just two template edits Go to template "editor_toolbar_on" & find the following code: HTML Code:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea> HTML Code:
<a ondblclick='java_script_:window.clipboardData.setData("Text",this.innerText); alert("Source Code copied into clipboard.");'><textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea></a> Go to template "editor_toolbar_off" & find the following code: HTML Code:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1">$newpost[message]</textarea> HTML Code:
<a ondblclick='java_script_:window.clipboardData.setData("Text",this.innerText); alert("Source Code copied into clipboard.");'><textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1">$newpost[message]</textarea></a> Don't Forget to Clik INSTALL if you like it |
Nice 1...
Tis a shame about the wyiswig though as i am sure most use that.... well i do But have jst changed to the standard to test this out... Thanks again..all working well |
Can you please stick the details in a text file and attach it to your 1st post.
|
Yeah please do that man..
|
I'll try to do that lateron & send you all update MSG
** Topic attached ** |
very useful .. thanks
Clicked install |
good idea, but you should try and do it on the onclick for the submit button, that way it is seamless and ppl don't have to remember to go and dblclick the textarea.
|
[high]* AshokForums.com clicks on install :)[/high]
|
looks good...
|
Hi...I have had to uninstall this i am afraid, there is a wee bug my friend
With this installed, you cannot turn a word into a hyperlink using the hyperlink button :( Cheers anyway |
All times are GMT. The time now is 01:01 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|