copy paste table to chrome, textarea.value no new lines
try this in chrome (ff,ie works ok): in msword or writer make a 3 row table. In each row put something, select all rows and copy paste to chrome textarea. Each row is now in new line but when you check textarea.value t开发者_C百科here is no new lines ..strange even spliting by \n or \r not working textarea.value always return one line output
any ideas?
i'm trying to split textarea.value by new lines but not working textarea.value.split('\n');
found the problem white-space:nowrap; was causing this :P
精彩评论