2021-06-27

React Draft WYSIWYG - wrap data in a div or span

I see that by default React Draft WYSIWYG wraps each new text line in a <p>.

Is there a way for me to wrap all the text in a span or div? Also when loading the WYSIWYG and user starts typing all the data to be wrapped inside a span or div. Been reading the documentation and could not find anything ( it is highly possible that I have missed it ) and I am very new to React hence my understanding of some things is not very good.



from Recent Questions - Stack Overflow https://ift.tt/2Sy7BeC
https://ift.tt/eA8V8J

No comments:

Post a Comment