{"record":{"id":"69b55736b768a645","repo":"ueberdosis/tiptap","slug":"tiptap-error-celltype-name-has-no-default","errorCode":null,"errorMessage":"[tiptap error]: \"${cellType.name}\" has no default content to backfill.","messagePattern":"\\[tiptap error\\]: \"(.+?)\" has no default content to backfill\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/extension-table/src/utils/fillEmptyCellContent.ts","lineNumber":21,"sourceCode":"\n// ASCII whitespace only, so a non-breaking-space cell is not treated as empty.\nconst COLLAPSIBLE_WHITESPACE = /[ \\t\\r\\n\\f]+/g\n\n/** Whether a cell/header element has no child elements and only collapsible whitespace. */\nexport function isEmptyCellElement(element: HTMLElement): boolean {\n  if (element.children.length > 0) {\n    return false\n  }\n\n  return (element.textContent ?? '').replace(COLLAPSIBLE_WHITESPACE, '') === ''\n}\n\n/** Builds a cell/header's minimal `block+` content, derived from the node type. */\nexport function fillEmptyCellContent(cellType: NodeType): Fragment {\n  const filled = cellType.createAndFill()\n\n  if (!filled) {\n    throw new Error(`[tiptap error]: \"${cellType.name}\" has no default content to backfill.`)\n  }\n\n  return filled.content\n}\n","sourceCodeStart":3,"sourceCodeEnd":26,"githubUrl":"https://github.com/ueberdosis/tiptap/blob/496d53afd7e4e3c7424b4749adeff4f45e27ddb0/packages/extension-table/src/utils/fillEmptyCellContent.ts#L3-L26","documentation":"Error \"[tiptap error]: \"${cellType.name}\" has no default content to backfill.\" thrown in ueberdosis/tiptap.","triggerScenarios":"Thrown at packages/extension-table/src/utils/fillEmptyCellContent.ts:21 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"496d53afd7e4e3c7424b4749adeff4f45e27ddb0","analyzedAt":"2026-08-26T22:41:43.400Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}