# layout.textEditing

Part of [Layout](https://kernstra.com/docs/web-sdk/config/layout) in the Kernstra Web SDK 1.0.0 configuration reference.

- Type: `TextEditSurface`
- Default: `'auto'`
- Page: https://kernstra.com/docs/web-sdk/config/layout/textediting

Where Edit Text types. Inline editing types on the page itself and draws its own caret from the PDF's glyph metrics. That is what makes a click land on exactly the character you aimed at on a desktop — and exactly what a fingertip cannot drive on a line a few millimeters tall, with the on-screen keyboard covering the words being typed. On a narrow or touch layout the tool opens a **bottom sheet** instead: the block's text goes into a real, visible textarea, so the browser draws a native caret and provides native selection handles, and the sheet tracks the visible viewport so it always sits above the keyboard.

- `'auto'`: Default. Sheet on a `narrow` or `tiny` container, or any coarse pointer. Inline everywhere else.
- `'inline'`: Always type on the page.
- `'sheet'`: Always use the bottom sheet, at any size.

```ts
new PDFViewer(container, doc, {
  layout: {
    textEditing: 'auto', // 'auto' | 'inline' | 'sheet'
  },
});
```

Web page: https://kernstra.com/docs/web-sdk/config/layout/textediting
