draft-js-import-html Not recognize Iframe as a state
mkhotib21 opened this issue · comments
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 matchtagName === '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