You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
I successfully manage to add a custom block (an iframe) to the editor I'm working on and in fact the added block renders itself pretty well and shows up in the editor alongside other equations, images, and text. This means, when I take a look at the page layout and the HTML elements, I clearly see the iframe. However, the actual content (ContentState) doesn't contain the iframe. More specifically, I only get a whitespace enclosed by a set of <p> and </p> and nothing else.
This is what I'm currently doing: First, I receive an embeddedContent string which I simply pass it to the strategy of my custom VideoDecorator. It simply looks for VIDEO entities and finally passes the information to a React Component for render, which does it very well (See Fig.).
However when using, for example, stateToHTML utility to convert the current EditorState to HTML, I get <figure> </figure>.
I successfully manage to add a custom block (an
iframe
) to the editor I'm working on and in fact the added block renders itself pretty well and shows up in the editor alongside other equations, images, and text. This means, when I take a look at the page layout and the HTML elements, I clearly see theiframe
. However, the actual content (ContentState
) doesn't contain theiframe
. More specifically, I only get a whitespace enclosed by a set of<p>
and</p>
and nothing else.This is what I'm currently doing: First, I receive an
embeddedContent
string which I simply pass it to thestrategy
of my customVideoDecorator
. It simply looks forVIDEO
entities and finally passes the information to a React Component for render, which does it very well (See Fig.).However when using, for example,
stateToHTML
utility to convert the currentEditorState
to HTML, I get<figure> </figure>
.and the
VideoDEcorator
:Any idea where I am making a mistake?
Thanks for your help!
The text was updated successfully, but these errors were encountered: