Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help / Add video support #205

Open
volkandkaya opened this issue Dec 17, 2019 · 2 comments
Open

Help / Add video support #205

volkandkaya opened this issue Dec 17, 2019 · 2 comments

Comments

@volkandkaya
Copy link

volkandkaya commented Dec 17, 2019

https://github.com/sstur/draft-js-utils/blob/4007f3ef39db2f4b264d28381b03c5795b7176cb/packages/draft-js-utils/src/Constants.js has images, video would make life a lot easier for everyone.

Currently struggling to get stateFromHTML working with Video, any hints would be much appreciated.

<p><br></p>
<figure><video src="https://www.youtube.com/watch?v=Ha43whl9f_k">&nbsp;</video></figure>
<p><br></p>

turns into


<p><br></p>
<figure>&nbsp;</figure>
<p><br></p>

after using stateFromHTML

@Nora10
Copy link

Nora10 commented Feb 17, 2021

@volkandkaya any luck pls ?

@volkandkaya
Copy link
Author

@Nora10 gave up on text editors a long time ago. Built my own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants