Trevixal API
    Preparing search index...
    • Run JavaScript and HTML code blocks in a sandboxed frame. The frame may run scripts but has no origin of its own, so it cannot reach the page, its storage or its cookies; and it may fetch nothing. JavaScript's console output is listed under the block; HTML is drawn there.

      The output is chrome, not content, as a diagram's preview is: it sits in the block's <pre> after the code, and the document never holds it. It belongs to the code that ran, so changing the code clears it. Returns the runner, whose run a Run button calls.

      Parameters

      • editor: Editor

      Returns CodeRunner