Adds a wrapping <span> around the document in the RichText component.
Previously the component props were being spread to each paragraph node, which was causing an issue with rendering.
I also added a couple of styles to remove the margin-top from the first element, and remove the margin-bottom from the last element in the RichText editor.
This way the top and bottom margin's are not forced, and the user can control the exact amount of margins they want using the design sidebar.
Purpose
Ticket: https://contentful.atlassian.net/browse/ALT-585
Adds a wrapping
<span>
around the document in the RichText component.props
were being spread to each paragraph node, which was causing an issue with rendering.I also added a couple of styles to remove the margin-top from the first element, and remove the margin-bottom from the last element in the RichText editor.