Issue #2986Opened August 31, 2020by FlowingCloudRTL0 reactions

BUG: Addframe method not working with the component props

Question

Version: "0.16.18"

Are you able to reproduce the bug from the demo?

[ X] Yes [ ] No

Steps to reproduce the bug in web builder demo: Open the demo and the console, enter editor.Canvas.addFrame({ name: 'Mobile home page', x: 100, // Position in canvas y: 100, width: 500, // Frame dimensions height: 600, // device: 'DEVICE-ID', components: [ '<h1 class="testh">Title frame</h1>', '<p class="testp">Paragraph frame</p>', ], styles: .testh { color: red; } .testp { color: blue; } , });

Expected Result: An iframe is created with the appropriate components

Bug: image

It seems that the issue is just the component part, if you take it out the iframe will be created just fine. However I currently am not sure how to create components in the generated iframe in other ways.

Answers (1)

artfSeptember 1, 20200 reactions

Thanks @FlowingCloudRTL for the report but the multi-frame feature is still far from being complete so I'm not surprised about the issues. If anyone is interested in bringing this feature further, please let me know

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.