If you import HTML that doesn't have any tags wrapping the outer content, the outer content (with no tags) is placed at the beginning of the editor.
Example:
Perhaps this breaks an assumption that ALL content should be wrapped in tags. However, content generated from other rich text editors doesn't always export the cleanest of HTML, and would be nice to just treat all top-level content with no tags as <p> tags, to maintain the order of the content.
This allows a cleaner migration of application saved markup content to use draft-js/react-rte
If you import HTML that doesn't have any tags wrapping the outer content, the outer content (with no tags) is placed at the beginning of the editor.
Example:
Perhaps this breaks an assumption that ALL content should be wrapped in tags. However, content generated from other rich text editors doesn't always export the cleanest of HTML, and would be nice to just treat all top-level content with no tags as
<p>
tags, to maintain the order of the content.This allows a cleaner migration of application saved markup content to use draft-js/react-rte