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

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations