- Сообщения
- 3 910
- Реакции
- 24
- Баллы
- 1 821
Идем в шаблон extra.less:
Создаем новую модификацию:
Шаблон: bb_code_tag_code
Ключ: любой
Тип поиска: Регулярное выражение
Найти:
Заменить:
Код:
.bbCodeBlock--code
{
.bbCodeBlock-title
{
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.xgridCodeCopy
{
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-left: auto;
padding: 4px 10px;
text-decoration: none;
cursor: pointer;
}
}
Создаем новую модификацию:
Шаблон: bb_code_tag_code
Ключ: любой
Тип поиска: Регулярное выражение
Найти:
Код:
/(<div class="bbCodeBlock-title">[\s\S]*?)(<\/div>)/
Заменить:
Код:
$1<button type="button" class="button xgridCodeCopy" data-xf-init="copy-to-clipboard" data-copy-text="{$content}">{{phrase('button.copy')}}</button>$2