---
title: "Инструмент «Подчёркивание» — Cmd+U в Blok"
description: "Подчёркивает выделение из строчного тулбара или по Cmd/Ctrl+U и сохраняет соответствующую разметку в тексте блока."
source: https://blokeditor.com/ru/docs/underline/
lastmod: 2026-10-07
---

Фреймворк JavaScript

Строчные инструменты Подчёркнутый

# Подчёркивание: подчёркнутый текст

Оборачивает выделенный текст в `<u>`. Включается сочетанием Cmd/Ctrl+U или кнопкой U на строчной панели инструментов.

### Импорт

TypeScript

```
import { Underline } from '@bloklabs/core/tools';
```

### Формат данных

TypeScript

```
// A mark on a run of the block's text field:
// { "text": "world", "marks": { "underline": true } }
```

JSON

```
{
  "type": "paragraph",
  "data": {
    "text": [{ "text": "Hello " }, { "text": "world", "marks": { "underline": true } }]
  }
}
```

### Пример использования

TypeScript

```
import { Blok } from '@bloklabs/core';
import { Underline, Paragraph } from '@bloklabs/core/tools';

const editor = new Blok({
  holder: 'editor',
  tools: {
    // Paragraph is the default block and is not bundled with the core —
    // without it the editor starts with an "unsupported block" stub.
    paragraph: Paragraph,
    underline: Underline,
  },
});
```
