Files
pyscript/pyscript.core/tests/manual/submit.py
Andrea Giammarchi a6b0964185 Fix #2155 - Allow editor.process to run on behalf of users (#2177)
* Fix #2155 - Allow editor.process to run on behalf of users

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updated dev/dependendencies

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-20 15:42:29 +02:00

7 lines
136 B
Python

from pyscript import document
def submit(event):
editor = document.querySelector("#editor")
editor.process(editor.code, True)