This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
How should convertFromHTMLToContentBlocks
process media tags ?
#260
Labels
convertFromHTMLToContentBlocks
simply ignore media contents for now. this is obviously not what i want.to my knowledge, draft.js suggest to provide media through
Block
type, but img/video/etc.. are often inline tags in DOM .of course i can return a chunk in
convertFromHTMLToContentBlocks ==> genFragment
:but this code makes me feel tricky, don't know if it is right, should
convertFromHTMLToContentBlocks
provide some hooks to allow customization ofhtml => ContentBlocks
?Any thoughts on this?
The text was updated successfully, but these errors were encountered: