Training In: Cross Country | |
ᙧ 0007 - J5 |
$(window).bind("load", function() {
$('#mycontent').bind('paste', function(){
var before = document.getElementById('mycontent').innerHTML;
setTimeout(function(){
var after = document.getElementById('mycontent').innerHTML;
var pos1 = -1;
var pos2 = -1;
for (var i=0; i)<[^>]+>/g, '');
var replaced = after.substr(0, pos1)+replace+after.substr(pos1+pasted.length);
document.getElementById('mycontent').innerHTML = replaced;
}, 100);
});
});
function copyHref(e,link) {
e.preventDefault(); // stops the link from navigating
navigator.clipboard.writeText(link.href);
alert("Post Link Copied!");
}
|