Skip to content

Viewing HTML Files

You can view HTML files directly in the workspace without downloading them. To change the content, you edit the source code.


HTML Preview (Rendering)

  • Opening an .html file shows a preview of the file as below.

HTML viewer

  • Images in the same folder are shown as referenced from the HTML. CSS files linked with <link> and JS files in the same folder are loaded after you allow script execution as described below. Styles written inside the HTML with <style> apply even before that. If you upload a build output from Vite or similar tools as a whole folder, it works once you allow script execution.
  • Click Raw data in the top right to view the raw content.
  • The preview is view-only. To change the content, select Edit source above the preview.

Using Interactive Documents

Once you allow script execution, JavaScript (JS) runs, so HTML files with interactions such as clicks, animations, and tab switching can be run as-is. Without a separate server or deployment, uploading to a folder is all it takes for the entire team to run it.

Usage Examples

  • Prototype proposals where clicking a button switches the screen
  • Reports containing charts or graphs
  • Proposals with interactions like tabs and accordions

Blocking Script Execution

If an HTML file contains a script (<script>) or an event handler, its execution is first blocked for security and a notice appears above the preview. Select one of the options below in the notice to run the scripts. If your account does not have execute permission, the notice tells you to contact your administrator instead of showing the options.

Blocking script execution

OptionDescription
Run onceAllows scripts only until you close the current browser tab.
Always allow for this fileIn this browser, automatically allows scripts for this file going forward. If the file content changes, you are asked again.

Editing HTML

HTML files are edited as source code only. There is no visual editor with formatting buttons, and double-clicking the body text in the preview does not switch to edit mode.

  1. Select Edit source above the preview. Selecting the edit (pencil) icon at the top, or double-clicking the body text in Raw data, does the same.
  2. Change the content in the code editor on the Raw data screen. Use Ctrl+F to find and replace text.
  3. Select the save (floppy disk) icon at the top, or press Ctrl+S (macOS: Cmd+S), to save.
  4. Return to the preview to check the result. If the file content changed, you are asked again whether to allow script execution.

You cannot start editing while another user is editing the same file. See Collaborative Chat and Edit Lock.