-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaks on colwidths #59
Comments
Hey @thijsvaniersel-cellsignal, the JSON ( excluding {
"type": "doc",
"children": [
{
"type": "p",
"children": [
{
"text": ""
}
]
},
{
"type": "table",
"attrs": {
"rows": 3,
"cols": 2,
"colWidths": [
134,
139
]
},
"children": [
{
"type": "tbody",
"children": [
{
"type": "tr",
"children": [
{
"type": "td",
"children": [
{
"type": "p",
"children": [
{
"text": "1"
}
],
}
],
},
{
"type": "td",
"children": [
{
"type": "p",
"children": [
{
"text": "2"
}
],
}
],
}
],
},
{
"type": "tr",
"children": [
{
"type": "td",
"children": [
{
"type": "p",
"children": [
{
"text": "3"
}
],
}
],
},
{
"type": "td",
"children": [
{
"type": "p",
"children": [
{
"text": "4"
}
],
}
],
}
],
},
{
"type": "tr",
"children": [
{
"type": "td",
"children": [
{
"type": "p",
"children": [
{
"text": "5"
}
],
}
],
},
{
"type": "td",
"children": [
{
"type": "p",
"children": [
{
"text": "6"
}
],
}
],
}
]
}
],
}
]
},
{
"type": "p",
"children": [
{
"text": " "
}
]
}
],
"_version": 5
} The key is named Can you once re-check and confirm the source of the generated JSON? |
Hi Jayesh, sorry for not responding. That's not fair when creating a ticket. Thanks for checking, I see it is indeed camelCase now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. I am working with the JSON RTE field. I want to use it to create tables. We have a NUXt application that fetches the data. To show the JSON as HTML, we use this package. When I use a table, the page breaks. After investigation, I see this is because of a typo in the colwidth attribute on the table type.
This is the response I get from ContentStack in the JSON
In the package, you are looking for the camel case attribute name for colWidths:
If I map the data to use the camel case notation 'colWidths', the page works and I see the table in the HTML.
I have the 2.0.9 version of the package.
The text was updated successfully, but these errors were encountered: