简体   繁体   中英

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 there 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM