# UnifiedWriter Edit Layout Policy

UnifiedWriter separates **editable layout** from **page preview**.

## Editable layouts

- **Print Layout**: Google Docs-like editable paper layout. The editor remains active and content can be edited directly on the page-like surface.
- **Normal Layout**: Continuous editable layout without paper boundaries.

Both modes are part of Editing Mode. Choosing either layout from the View menu automatically returns from Page Preview to Editing Mode.

## Page Preview

Page Preview is read-only and is used for output confirmation, paging verification, PDF export checks, and print-oriented review. It is not the same as Print Layout.

## Recommended View menu structure

```text
View
  Print Layout
  Normal Layout
  ---
  Page Preview (Read only)
  Back to Editing
  ---
  Show / Hide Toolbar
  Show / Hide Left Pane
  Show / Hide Right Pane
  Show / Hide Status Bar
  ---
  History
```


## v5.14.8 Native Editor Update

UnifiedWriter no longer depends on Simditor for the editable surface.  The editor is now a first-party contenteditable implementation (`NativeEditorAdapter`) owned by UnifiedWriter.  The legacy `.simditor` and `.simditor-body` class names are kept only as CSS compatibility hooks.

- Print Layout is editable and displays a Google Docs-like paper surface.
- Normal Layout is editable and displays a continuous document surface.
- Page Preview remains read-only and is used for output checking, PDF export, and page split verification.

The current editable Print Layout focuses on stable editing and paper-width layout.  Exact automatic pagination remains the responsibility of Page Preview / PDF export.


## v5.14.9 Editable Print Layout pagination

Print Layout is now an editable paged surface. UnifiedWriter splits block-level content
across real editable page containers while typing. This is different from Page Preview:

- Print Layout: editable, Google Docs-like paper editing surface.
- Normal Layout: editable continuous web layout.
- Page Preview: read-only output/print/PDF confirmation.

The real-time paginator keeps generated page boundaries out of the saved HTML. Manual
page breaks inserted by the user are retained as `<hr class="unified-writer-pagebreak" data-pagebreak="1">`.


## dev-5.15.0: Editable auto-pagination behavior
Print Layout now performs live pagination on the editable page surfaces.  Blocks are moved across pages when they overflow.  Text-only blocks that are longer than the remaining page space are split so the overflow can continue on the next page.  Complex atomic elements such as large tables or images are kept intact and may require later dedicated handling.
