Add SOS CKEditor configuration demo

This commit is contained in:
jonathandhn committed 2026-09-17 13:26:30 +02:00
commit f92a1cd866
25 files changed
+970

No files matched your search

+58
View File
@@ -0,0 +1,58 @@
(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.$);