Skip to content

can only add image to header of a table #557

Closed

Description

@JonathanDHolden

I can cut and paste an image into a table cell, but only on the header row. We should be able to add an image in any cell.

Activity

  1. awkj commented on Feb 20, 2025

    @awkj

    I found that the Tiptop library used by DocMost supports inserting images into the body section of a table.

    https://tiptap.dev/

  2. FantDing commented on Mar 22, 2025

    @FantDing

    have the same promblem

  3. novaeth commented on Apr 27, 2025

    @novaeth

    I guess the following code limits the content node type of the cell. I tried to modify some of the code, but no exceptions have been found so far.

    import { TableCell as TiptapTableCell } from "@tiptap/extension-table-cell";
    
    export const TableCell = TiptapTableCell.extend({
      name: "tableCell",
      // I tried commenting this code
      // content: "paragraph+",
    });

    Don't you know what the risks are?
    @Philipinho

  4. Philipinho commented on Sep 26, 2025

    @Philipinho
    Member

    This was fixed in recent versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions