[QUESTIONS] How to disable Scripts inside the editor?
Question
Hi @artf , I need to disable all the scripts (component scripts and other scripts) inside the editor, and scripts should run only when we click on 'preview button'. Is there any method for it?
Answers (3)
Hi @artf ,
Thank you for the reply. Right now i'm removing all the scripts and running only in preview mode.
No, at the moment, there is no kind of public API to do that
Hi @sdrebel would love if you can share your solution.
Also,after allowing scripts in the editor i copied this example to import
pressed the import and saw the hello world.
however when using the preview mode i don't see the alert .
Do i need to configure something to execute scripts in preview mode?
Also my next step is that i would like the editor not to execute the JS , hoe did you handle it? by adding CDATA?
thanks for the help!
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1886
How to create Drop down for the button inside a panel?
I'm trying to create a dropdown while clicking a button. I can append the data using ul, li to a button. Other than that any other way is t...
Issue #2972
FEAT: Disable scripts on canvas
Hello, first of all thanks for a great tool. On my project i hit the problem where I need to disable scripts inside the editor. I found 2 s...
Issue #1322
Disable editing in Preview Mode.
@artf How can we disable editing in the preview mode and re-enable it when preview mode off. I want to remove editor and hide toolbar in th...
Issue #2273
Stop function of all commands are getting executed before the actual run command.
I created 3 custom button(edit, preview, save) and all those have run and stop methods. When i click on any button, it triggers the run com...
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.