Pasting table works only visually
Describe the bug
While using Markdown mode and pasting a table into the editor, the table seems to render perfectly fine. However, the content becomes [table].
To Reproduce Steps to reproduce the behavior:
- From some table source, like Excel, select rows and columns
- Copy the selection (ctrl/cmd + c)
- Anywhere in the editor, paste the content
- Table appears to be completely fine and correct, but the actual output (
editor.storage.markdown.getMarkdown()) returns the table as[table]
Expected behavior
Content exported with editor.storage.markdown.getMarkdown() should return a Markdown table
Desktop (please complete the following information):
- MacOS, Firefox Dev Ed.
- Vue2 with TipTap v 2.1.13, core 10.1.2, extension table (table, table-cell, table-header, table-row) v 2.4.0
- TipTap Markdown v 0.8.10
Additional context Creating a table manually using the Editor API seems to work completely fine. The table also renders completely fine, but it does not include dedicated table headers.
From previous observations, tables without a proper dedicated table header row, that appears first and only once, the table will break. The pasted table does not have a dedicated header row.
Attempts at using the fixTables() API method also does not appear to make any difference.
TipTap complains about tables needing to be in HTML mode, but it still works fine. We support Markdown only, so it is not in HTML mode.
any updates?