Allow host pages to call DartPad inject feature, rather than autorun #1390
Labels
inject-script
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
Milestone
AFAIK, the DartPad inject feature upon loading, queries a host page looking for code blocks with a
run-dartpad
class and replaces these blocks by DartPad iframes.The following might be possible already, but it would be nice if the user could invoke the DartPad inject functionality by, say, clicking on a "Open in DartPad" button that would be shown over a code block or tabbed code block as is shown below. This could help reduce the time to load pages with embedded DartPads.
Of course the button would be an element in the host page. What we need is a point of call for the inject function.
cc @kwalrath @legalcodes
The text was updated successfully, but these errors were encountered: