Widgets in a table are not rendered
ArthurWD opened this issue · comments
ArthurWD commented
Describe the bug
Widgets in a table are not rendered
To Reproduce
Steps to reproduce the behavior:
- Add a table
- Add a widget in a cell
- Switch from markdown to wysiwyg and back
- Widget is not rendered correctly
Expected behavior
Widget should remain
Additional context
I fixed it by editting apps/editor/src/convertors/toWysiwyg/toWwConvertors.ts
. I've changed hasParaNode
in tableCell
to the following which works for me, but I'm not sure if it works in all cases:
const hasParaNode = (childNode: MdNode | null) =>
childNode &&
(isInlineNode(childNode) ||
isCustomInline(childNode) ||
isCustomHTMLInlineNode(state, childNode));