Skip to content

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

Description

@mkhotib21

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions