---
title: "Инструмент «Сбросить формат» — снять оформление"
description: "Снимает все строчные стили с выделения одним действием, оставляя чистый текст и не трогая структуру блоков."
source: https://blokeditor.com/ru/docs/clearFormat/
lastmod: 2026-10-07
---

Фреймворк JavaScript

Строчные инструменты Очистить формат

# Сбросить формат: снять строчное оформление

Снимает с выделенного текста строчное форматирование (жирный, курсив, подчёркивание, зачёркивание, строчный код, подсветку). Ссылки сохраняются. Применяется кликом по кнопке Tx на строчной панели инструментов.

### Импорт

TypeScript

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

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

TypeScript

```
// Removes marks from the runs of the block's text field.
// [{ "text": "Hello", "marks": { "bold": true } }, { "text": " world" }]
// becomes [{ "text": "Hello world" }]
```

JSON

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

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

TypeScript

```
import { Blok } from '@bloklabs/core';
import { ClearFormat, 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,
    clearFormat: ClearFormat,
  },
});
```
