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

draft-js-import-html Not recognize Iframe as a state #266

Open
mkhotib21 opened this issue Feb 5, 2024 · 0 comments
Open

draft-js-import-html Not recognize Iframe as a state #266

mkhotib21 opened this issue Feb 5, 2024 · 0 comments

Comments

@mkhotib21
Copy link

Hello,

Background :

  • I have html containing iframe inside it and i'm using stateFromHTML to convert it as draft-js state with option customInlineFn that have condition to match tagName === 'IFRAME' the return Entity('EMBEDDED_LINK', ...restOptions)
  • And the EMBEDDED_LINK will be handled in iframeDecorator to return iframe component if the condition match

Question :

  • inside customInlineFn the entityKey is generated and the condition match, but in draftJs state it's not generated as editor state
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