Hello, everyone!
I'm playing around with slice machine and love it.
I was trying to add custom labels to richtext inside model.json file but get error when trying to push to prismic.
Original
"description": {
"type": "StructuredText",
"config": {
"multi" : "paragraph, preformatted, heading2, heading3, heading4, heading5, heading6, strong, em, hyperlink, image, embed, list-item, o-list-item, o-list-item",
"label": "Description",
"placeholder": "A nice description of your feature"
}
},
with labels
"description" : {
"type" : "StructuredText",
"config" : {
"multi" : "paragraph, preformatted, heading2, heading3, heading4, heading5, heading6, strong, em, hyperlink, image, embed, list-item, o-list-item, o-list-item",
"allowTargetBlank" : true,
"label" : "Description",
"labels" : {
"" : [ {
"name" : "lg-paragraph"
}, {
"name" : "sm-paragraph"
} ]
}
}
}
It works perfectly fine with slices created inside prismic dashboard.
Big thanks in advance
Edit: Code formation
Edit2 : Typo