# Pageless Word editing

Edit a DOCX without page breaks getting in the way. SuperDoc Web Layout reflows the document to fit your screen. Try the sample below or open your own Word file.

[Enable Web Layout](https://docs.superdoc.dev/editor/built-in-ui/responsive-layout/#reflow-document-content) with `viewOptions: { layout: 'web' }`.

Use **Upload** to open your own DOCX locally in the browser. Use the download icon to save the edited copy and the reset icon to return to the sample.

Open the [sample DOCX](https://pageless-web-layout-preview.superdoc-reproductions.pages.dev/sample.docx). Tap into the document to edit, or select a passage to open the floating toolbar. Use **Try a sample selection** to open it in one tap. Try italicizing the selected text or choose **More** to open the context menu. On a touch screen, double-tap a word and drag the blue handles to adjust the selection.

## When to use pageless editing

Use Web Layout when you need the text to fit a phone, tablet, or narrow panel. We expect more of those quick review passes as agents take on first drafts. Find the right clause, make the change, and keep the conversation with the passage.

Switch to **Suggesting** in the editor toolbar to propose an edit. Tap a marked change to accept or reject it, or tap highlighted text to open its comment. On a phone, review opens in a bottom sheet. In the reply composer, tap × to return to the thread. Tap × again to return to the marked passage. Select text and tap **More** for the context menu. On desktop, switch to **Narrow** to try the same editor in a side panel.

### Use Print Layout for a more traditional Word review

Use the download icon to save the active DOCX and continue working in Word. Use Print Layout when readers need page boundaries, headers, footers, the ruler, or page counts.

## Build this

```js
const editor = new SuperDoc({
  selector: '#editor',
  document: './sample.docx',
  documentMode: 'editing',
  user: { name: 'Demo Reviewer', email: 'reviewer@example.com' },
  viewOptions: { layout: 'web' },
  ui: {
    toolbar: { container: '#toolbar', responsiveTo: 'container' },
    comments: { layout: 'inline' },
  },
  onReady: ({ superdoc }) => bindSelectionTools(superdoc),
});
```

The live demo runs SuperDoc 2.38.0. In the [demo source](https://pageless-web-layout-preview.superdoc-reproductions.pages.dev/demo.js), find `bindSelectionTools` for a working implementation. It observes the selection, captures the document target with `ui.selection.capture()`, and positions actions using `ui.viewport.getRect()`. It runs formatting with `ui.commands.execute()`.

The [demo source](https://pageless-web-layout-preview.superdoc-reproductions.pages.dev/demo.js) uses the phone’s visual viewport to keep the native review sheet above the on-screen keyboard.

The [touch controls](https://pageless-web-layout-preview.superdoc-reproductions.pages.dev/mobile-controls.js) use the homepage’s range handling and native typing assistance. The floating **More** button opens the editor’s context menu. Holding selected text also opens the same menu on touch screens.

- [Make the DOCX reflow](https://docs.superdoc.dev/editor/built-in-ui/responsive-layout/#reflow-document-content)
- [Position a floating toolbar beside the selection](https://docs.superdoc.dev/editor/custom-ui/selection-reference/)
- [Configure the context menu](https://docs.superdoc.dev/editor/built-in-ui/context-menus/)
- [Add tracked changes](https://docs.superdoc.dev/editor/track-changes/) and [responsive comments](https://docs.superdoc.dev/editor/built-in-ui/comments/)

The [synthetic sample](https://pageless-web-layout-preview.superdoc-reproductions.pages.dev/sample.docx) is adapted from the [SuperDoc quickstart document](https://docs.superdoc.dev/fixtures/getting-started.docx).

[Open the live demo](https://pageless-web-layout-preview.superdoc-reproductions.pages.dev/). [Explore the SuperDoc DOCX editor](https://www.superdoc.dev/solutions/docx-editor).
