I am unable to apply labels to preformatted text.
Is there any way to accomplish this?
Labels are working just fine for other rich text, and I am creating them the exact same way in the JSON editor for my types.
This is what my JSON looks like right now:
"code" : {
"type" : "StructuredText",
"config" : {
"multi" : "preformatted",
"label" : "Code",
"labels" : [ "jsx", "css", "javascript" ]
}
},
**Edit - ** For what it's worth, I'm just solving this for now by faking a label by putting the label in the first line of the preformatted text, and splitting it off from the code in my htmlserializer (I'm using Gatsby). I could've sworn the labels were working fine with the preformatted sections a year or so ago, but all of a sudden they've been done undone.