The textarea component in antd, how to render the data returned by the background?

problem description

clipboard.png

clipboard.png
clipboard.png

the environmental background of the problems and what methods you have tried

using a background management system made by react+antd, when you click the edit button to jump to the editing component of the report, the content of the rendered text field returned by the background is label + content. How should the content returned by the background be parsed normally? There may be text and pictures in the content, and there will be line breaks. Is also a react slag, the use of react flexibility is not enough, hope God guidance

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?


you need a rich text component, like http://www.wangeditor.com/


if you need styled text, you need a rich text component.
if it is plain text, just pass the value to antd.

Menu