HTML
Edit HTML source and see it rendered in a sandboxed live preview.
The HTML editor opens .html text files with two views over the same source.
- Edit provides HTML syntax highlighting, including embedded
<style>and<script>content. - Preview renders the document live in a sandboxed iframe.
The preview sandbox
Section titled “The preview sandbox”The preview runs with an opaque origin — the iframe is sandboxed with
allow-scripts and allow-modals but deliberately not allow-same-origin.
In practice that means your page’s scripts execute (and alert()/confirm()
work for quick experiments), but they cannot reach Worktray’s origin,
localStorage, or IndexedDB. You get a real, interactive preview without giving
the page access to your data.
This is the same sandboxing invariant Worktray applies to all runnable content; see Privacy and local data.