Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

The table copied from excel and pasted into a div with contenteditable=true misses its wrapping <table> element.

  • 1 trả lời
  • 1 gặp vấn đề này
  • 29 lượt xem
  • Trả lời mới nhất được viết bởi guigs

more options

Open an excel document, copy a table, say a 2*3 table holding 1, 2, 3; 4, 5, 6. Go to the http://jsfiddle.net/ThinkingStiff/AbKTQ/. Paste the content into the text field which contains "I look like a textarea". Press F12 and then check the html of that control, you will see the content in the attached image: Under the div, there is no table element but only the colgroup and tbody which are sub elements of the table.

Since table contains the format information, it should be available after paste operation. Both IE and Chrome can handle this correctly. Hope Firefox can do the same.

Both 38 and 39 have the same problem.

Open an excel document, copy a table, say a 2*3 table holding 1, 2, 3; 4, 5, 6. Go to the http://jsfiddle.net/ThinkingStiff/AbKTQ/. Paste the content into the text field which contains "I look like a textarea". Press F12 and then check the html of that control, you will see the content in the attached image: Under the div, there is no table element but only the colgroup and tbody which are sub elements of the table. Since table contains the format information, it should be available after paste operation. Both IE and Chrome can handle this correctly. Hope Firefox can do the same. Both 38 and 39 have the same problem.

Tất cả các câu trả lời (1)

more options