# Панель BB-кодов

Вы можете интегрировать панель BB-кодов прямо в текстовое поле, добавив всего-лишь 1 класс <mark style="color:orange;">`.bbpanel`</mark>

```html
<textarea class="bbpanel"></textarea>
```

{% embed url="<https://codepen.io/pipui/pen/mdjRmGN>" %}
Пример работы кода выше
{% endembed %}

Управлять доступными тегами можно используя javascript. Код ниже добавит тег \[url]\[/url] в панель

```javascript
pipui.bbpanel.codes.url = {'title': 'Гиперссылка', 'text': '<i class="fa-solid fa-link"></i>', 'left': '[url]', 'right': '[/url]'}; 
```


---

# 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://v1-6-0.pipui.ru/components/bb-panel.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.
