P
P
Polina Shestakova2019-09-05 08:43:04
Video
Polina Shestakova, 2019-09-05 08:43:04

How to get src for iframe in draft.js on reopen?

https://gist.github.com/paulinep/ac5a9bc63862835fe... here is a finished text editor component using draftjs One of the tasks was to insert a video link directly into the text for immediate video viewing. To do this, I use the iframe tag and specify the link as src. But after saving the material and re-opening it in the editor, when converting from HTML, the draft gives an error that it cannot get the key of this block in any way (although in fact it exists). In theory, all I need is to get src from it, because when you open it, because of this bug, you have to re-create the iframe entity. Has anyone experienced converting from html with iframe to contentState draftjs?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question