Вставьте этот код в init.php
Код |
---|
AddEventHandler("main", "OnBeforeEndBufferContent", "addFont");
function addFont(){
global $APPLICATION;
$APPLICATION->AddHeadString("<sc ript>
BX.addCustomEvent('GetFontFamilyList', BX.delegate(function(fontFamilyList){
fontFamilyList.forEach(function(element,index){
if(element['value'] == 'CeraCYLight'){
fontFamilyList.splice(index, 1);
}
});
fontFamilyList.push({value: 'CeraCYLight', name: 'CeraCYLight'});
}, this));
</sc ript>", true);
} |
https://dev.1c-bitrix.ru/api_help/js_lib/kernel/castom_events/bx_addcustomevent.php