How to create a table in a Rich text field

I need to create a table in rich text field. is it possible ?
I render all the html from the rich text field directly to my page, is there way to create a table in rich text field. ( note: I do not want to create a separate field for table)

something like this:
image (4)

Is this only one column? Because you can do it with key text and a group field:

{
  "Main": {
    "table_title": {
      "type": "Text",
      "config": {
        "label": "Table title",
        "placeholder": "Enter title"
      }
    },
    "table_rows": {
      "type": "Group",
      "config": {
        "fields": {
          "table_row": {
            "type": "Text",
            "config": {
              "label": "Table row",
              "placeholder": "Enter row value"
            }
          }
        },
        "label": "Table rows"
      }
    }
  }
}

There’s also a help guide here:

Hi Ujjwal,

Thanks for posting!

Prismic does not provide a method for rendering a table in a rich text field. So, to display a table you would need to create another field. There are lots of methods for doing so, like how @marcellothearcane suggests.

We have a guide for creating a table using a group:

Let me know if that works for you, and if you have any other questions.

Sam

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.