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

YouTube doesn't seem to export to html #35

Open
solomon23 opened this issue Mar 23, 2023 · 0 comments
Open

YouTube doesn't seem to export to html #35

solomon23 opened this issue Mar 23, 2023 · 0 comments

Comments

@solomon23
Copy link

Using the <InsertDropdown enableYoutube /> the html it generates after including a youtube video doesn't include the video...

here's my onChange code

const handleChange = (
  value: string,
  editorInstance?: LexicalEditor | undefined,
) => {
  console.log(value); // incudes the youtube video in the nodes
  editorInstance?.update(() => {
    const htmlString = $generateHtmlFromNodes(editorInstance, null);
    console.log(htmlString); // doesn't include youtube video
  });
};
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

1 participant