Hi all,
Hoping someone can drag me out of a rabbit hole…
When using the table extension for TipTap, you can toggle a header row on and off, but it looks like that is just changing the td’s into th’s inside the tbody.
Does anyone know if it’s possible to tweak it so that toggleHeaderRow generates a thead element and moves the header row into that?
Thanks!
Hi Mike, the quick answer is no, it isn’t possible with the current code/library.
Longer answer, for the RTE, we’re using Tiptap’s own TableHeader extension, (source code), which only changes a td to a th at cell level. The extension makes the assumption that the whole table contents is a tbody, and doesn’t attempt to change that structure. 
Currently, the only way I can think of to achieve what you want is to develop a custom Tiptap extension and replace the Umbraco extension that wraps the existing one. Which may become a significant undertaking. 
1 Like
Understood - this is useful, thanks Lee!