Merge pull request #84 from scrool/clipboard_friendly_chat
Use invisible formatting for clipboard copy-paste
This commit is contained in:
@ -456,7 +456,7 @@ window.chat.renderMsg = function(msg, nick, time, team) {
|
||||
var t = '<time title="'+tb+'" data-timestamp="'+time+'">'+ta+'</time>';
|
||||
var s = 'style="color:'+COLORS[team]+'"';
|
||||
var title = nick.length >= 8 ? 'title="'+nick+'" class="help"' : '';
|
||||
return '<p>'+t+'<mark '+s+'>'+nick+'</mark><span>'+msg+'</span></p>';
|
||||
return '<p>'+t+'<span class="invisibleseparator"> <</span><mark '+s+'>'+nick+'</mark><span class="invisibleseparator">> </span><span>'+msg+'</span></p>';
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user