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
After inserting an iFrame that the src will be returned when using editor.getHTML()
When loading a page that iframes will be recognized as iframe component and become editable again
Describe the bug detailed
Am adding the option for users to insert an iframe based on the map component. However, after setting the src the editor.getHTML() only returns the iframe tags with the id and class.
Any existing iframes are not recognized as iframe component and are not selectable/editable after loading back into canvas.
With the code below I am able to add iframes to the canvas like the map component does and edit the src trait, which then updates the iframe correctly and shows the page defined in src. When checking code in developer panel it has src set correctly, but editor.getHTML() only returns <iframe frameborder=\"0\" id=\"i92w\"></iframe>.
Version:
0.17.4
Are you able to reproduce the bug from the demo?
What is the expected behavior?
editor.getHTML()
Describe the bug detailed
Am adding the option for users to insert an iframe based on the
map
component. However, after setting thesrc
the editor.getHTML() only returns the iframe tags with the id and class.Any existing iframes are not recognized as iframe component and are not selectable/editable after loading back into canvas.
With the code below I am able to add iframes to the canvas like the map component does and edit the src trait, which then updates the iframe correctly and shows the page defined in src. When checking code in developer panel it has src set correctly, but editor.getHTML() only returns
<iframe frameborder=\"0\" id=\"i92w\"></iframe>
.My code:
Are you able to attach screenshots, screencasts or a live demo?
The text was updated successfully, but these errors were encountered: