(function($) { 'use strict'; const sosPalette = [ { color: '#EA148C', label: 'Rose SOS homophobie' }, { color: '#00577B', label: 'Bleu SOS homophobie' }, { color: '#FFCF1A', label: 'Jaune SOS homophobie' }, { color: '#2E78CC', label: 'Bleu clair SOS homophobie' }, { color: '#FFFFFF', label: 'Blanc', hasBorder: true }, { color: '#000000', label: 'Noir' } ]; $(document).on('crmCkeditor5Config.ckeditor5SosDemo', function(event, config) { config.fontFamily = { options: [ 'default', 'Roboto, Arial, sans-serif' ], supportAllValues: false }; config.fontSize = { options: [10, 11, 13, 14, 18, 20], supportAllValues: false }; config.fontColor = { colors: sosPalette, columns: 3, documentColors: 0 }; config.fontBackgroundColor = { colors: sosPalette, columns: 3, documentColors: 0 }; }); })(CRM.$);