Should the mobile rich text editor preserve HTML table styling?

Recently worked on a fix for a bug where table styles (borders, background colours, CSS classes) were being lost when editing a note in the mobile rich text editor. The fix preserved styled tables as HTML blocks to retain their formatting similar to how pasted HTML tables are already handled.

Laurent closed the PR with some useful context worth a wider discussion: the desktop RTE (TinyMCE) supports many formatting features - table colours, column resizing, and more that have no Markdown equivalent. Silently converting edited tables to HTML to preserve these might be the right call, or it might be a slippery slope toward everything becoming HTML.

Some questions that might help scope this:

  • Should the mobile RTE be expected to preserve everything TinyMCE produces, or only table structure (rows/columns)?

  • Is there a reasonable middle ground for example, preserving HTML only for tables that were already stored as HTML?

  • With ProseMirror potentially replacing TinyMCE in the future, how does that affect what formatting we commit to preserving?

1 Like