FEAT: reset current frame view
Question
Version: 0.16.12
Are you able to reproduce the bug from the demo?
[ ] Yes [x ] No
What is the expected behavior? Reset window content of current frame view
Describe the bug detailed I want to implement a component to help user do certain action by attaching event to widow (ex: scroll or resize event) or add some data to window (ex: window.pageConfig = "abc")
This component is used in different pages. But each time user switches between pages, more and more handlers get attached or component use old data from the previous page. I try to use [clear-canvas] command but it only clear dom-elements and css-rules. I try to add a new frame view to replace the current frame view, but I know sure how to do that correctly.
Could you please help to give some advice ? Thanks
Answers (1)
You can get the canvas inner window in this way editor.Canvas.getWindow()
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3731
BUG: Text element not able to be selected twice after extended with events
Version: 0.17.25 Are you able to reproduce the bug from the demo?[ ] Yes[x] No What is the expected behavior? Update a existing component o...
Issue #3310
BUG: Tablet and mobile view not resizing
Version: The one in the demo Are you able to reproduce the bug from the demo? [X] Yes [ ] No What is the expected behavior? Mobile and tabl...
Issue #3018
Page refresh preventing after click on import
Version: 0.15.9 Are you able to reproduce the bug from the demo? Yes What is the expected behavior? Don't refresh the page after clicking o...
Issue #3457
BUG: Custom trait input not working
Hi @artf ! Version: 0.17.3 Are you able to reproduce the bug from the demo?[ ] Yes[x] No What is the expected behavior? The input is create...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.