In a react component, I'm trying to incorporate a plain text only contenteditable div, but as we use typescript the contenteditable property can not be a string. So in my .tsx-file when I enter this:
contentEditable={"plaintext-only"}
I get this error:
Types of property 'contentEditable' are incompatible. Type '"plaintext-only"' is not assignable to type 'boolean | undefined'.
How can I make it plain text only?