Phenomenon
When pasting table content (from Excel, Google Sheets, or HTML tables) into a contenteditable region in Firefox, the table structure is lost. The content may be pasted as plain text or lose its formatting.
Reproduction example
- Copy a table from Excel or Google Sheets.
- Create a contenteditable div.
- Paste the table content (Ctrl+V).
- Observe the structure of the pasted content.
Observed behavior
- In Firefox on Windows, table structure is not preserved.
- Table cells may be converted to plain text or lose their relationships.
- Formatting (borders, colors, alignment) is lost.
Expected behavior
- Tables should be pasted with their structure intact (
<table>,<tr>,<td>elements). - Formatting should be preserved where possible.
- Or, there should be a way to control how tables are pasted.