# richtext

![](/files/-MIVLDwse2IbErVqcs6-)

![](/files/-MIVLRiomj7K7qWmZm7n)

![](/files/-MIVOI-6l9t5ALLTWHRm)

#### Параметры (дополнение к [общим](/multifields-2/elementy.md#nizhe-privedeny-obshie-parametry-dlya-bolshinstva-elementov))

## inline

Булево. По умолчанию **false**. Параметр отвечает отображение редактора в отдельном окне либо в этом же.

## mf.theme

Строка. Указывает на название темы редактора. Если для introtext подключен редактор tinyMCE, то можно выбрать тему introtext, указав в значении **introtext**.

## mf.options

Массив или Строка json. Если установлен `inline => true`, то данный параметр должен обязательно быть, он указывает на инициализацию редактора. Некоторые элементы могут в себя вмещать элементы с типом **richtext** и их инициализация происходит только при открытии окна. Получается, если данный элемент не в скрытом блоке, то в нём должен содержаться параметр **init** инициализации со значением **true**, в противно случае значение **init** должно быть **false**.\
Пример

```php
'inline' => true,
'mf.options' => [
    'init' => true
]
```

Пример конфигурации

```php
<?php

return [
    'settings' => [],
    'templates' => [
        'richtext' => [
            'type' => 'richtext',
            'title' => 'RichText',
            'label' => 'RichText',
            'actions' => ['add', 'del', 'move'],
            'class' => 'col-12',
            'inline' => true,
            'mf.options' => [
                'init' => true
            ]
        ]
    ]
];
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://64j.gitbook.io/multifields-2/tipy-i-parametry/richtext.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
