Á¦ ¸ñ | [ÀÎõIN]ÀÛÀº±ØÀ嵹ü, ¸í»çÃÊû Ư° ¡®ÀÌÅ°ÇÀÇ ¸¶ÀÓ À̾߱â' | Á¶È¸¼ö | 2407 | |||||
±Û¾´ÀÌ | ClownMime | µî·ÏÀÏ | 2022.07.05 | |||||
$('#article-view-content-div').on('copy', function(e){
var sel = window.getSelection();
var copyFooter = " Ãâó : ÀÎõin ½Ã¹ÎÀÇ ¼ÕÀ¸·Î ¸¸µå´Â ÀÎÅͳݽŹ®(http://www.incheonin.com) "; var copyHolder = $(' ', {html: sel+copyFooter, id:'copy_text', style: {position: 'absolute', left: '-99999px'}});
$('body').append(copyHolder);
var str = $('#copy_text').html();
$('#copy_text').html(str.replace(/(\r\n|\n|\r)/gm, " ")); sel.selectAllChildren( copyHolder[0] ); window.setTimeout(function() { copyHolder.remove(); },0); }); }); |
||||||||