Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

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

  • 1 odpoveď
  • 1 má tento problém
  • 14 zobrazení
  • Posledná odpoveď od 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.

Všetky odpovede (1)

more options