# Editor::fillDocumentBySliceContent()

URL: https://chugunov.pro/api-bitrix/fileman/block/editor/filldocumentbyslicecontent/
Проверено на 1С-Битрикс 25.x, обновлено 03.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией 1С-Битрикс.

Класс: [`\Bitrix\Fileman\Block\Editor`](https://chugunov.pro/api-bitrix/fileman/block/editor/)
Модуль: Fileman.
Свойства элемента: method, public, static, устаревший.

## Сигнатура

```php
public static fillDocumentBySliceContent(Document $document, string $string[, string $encoding = null ]) : bool
```

## Описание

Заполняет шаблон (как DOM-документ) содержимым.

## Параметры

- `$document` `Document` — обязательный. Документ.
- `$string` `string` — обязательный. Строка содержимого.
- `$encoding` `string` — необязательный, по умолчанию `null`

## Возвращаемое значение

`bool`

Оригинал в официальной документации: https://docs.1c-bitrix.ru/api/classes/Bitrix-Fileman-Block-Editor.html
