# Question for table cellContent

**URL:** <https://discuss.prosemirror.net/t/question-for-table-cellcontent/3888>\
**Category:** Uncategorized\
**Created:** [July 7, 2021, 10:25am UTC](https://discuss.prosemirror.net/t/question-for-table-cellcontent/3888 "2021-07-07T10:25:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anne](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/anne/32/2221_2.png) [@anne](https://discuss.prosemirror.net/u/anne)\
**Post date:** [July 7, 2021, 10:25am UTC](https://discuss.prosemirror.net/t/question-for-table-cellcontent/3888/1 "2021-07-07T10:25:26Z")

</div>

Hi. We are using prosemirror. But we have a problem with tables. In the previous schema, it was done with cellContent:‘inline+’ of the table, We now have to change it to cellContent: ‘block+’. We want to know how to wrap the inline content in paragraphs when rendering the table.

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)\
**Post date:** [July 7, 2021, 9:44pm UTC](https://discuss.prosemirror.net/t/question-for-table-cellcontent/3888/2 "2021-07-07T21:44:46Z")

</div>

That should just work, or maybe I don’t understand the question. If a cell contains a paragraph, then the rendering specified in the schema for paragraphs will be used to render it.

---

<div class="post-metadata">

**Author:** ![anne](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/anne/32/2221_2.png) [@anne](https://discuss.prosemirror.net/u/anne)\
**Post date:** [July 8, 2021, 2:22am UTC](https://discuss.prosemirror.net/t/question-for-table-cellcontent/3888/3 "2021-07-08T02:22:16Z")

</div>

Oh, my question was weird. I’m sorry.

We have already data containing inline+ content inside a table cell. When It change the cell schema to block+, I wonder if there is a way to convert and render existing inline content to block content.

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)\
**Post date:** [July 8, 2021, 8:55pm UTC](https://discuss.prosemirror.net/t/question-for-table-cellcontent/3888/4 "2021-07-08T20:55:04Z")

</div>

In your database? Not automatically, but you should be able to write a function that takes the JSON (or HTML or whatever) representation of your document and updates it to conform to the schema change, and run that over your database, rather easily. (The DOM parser might in fact even automatically fix this for you, if you store the docs as HTML, but JSON input is not mangled or validated on parsing.)
