How can I change the font-family
of CKEditor
to Meiryo
based on a JavaScript boolean?
I attempted this code in my custom JS within an if
condition, but it did not successfully change the font-family
:
config.font_style =
{
element : 'span',
styles : { 'font-family' : '#Meiryo' },
overrides : [ { element : 'font', attributes : { 'face' : null } } ]
};
I also tried adding the following in my custom script:
config.font_defaultLabel = 'Meiryo';
config.fontSize_defaultLabel = '12px';
Unfortunately, neither of these methods worked. Can someone assist me in identifying what I may be doing incorrectly?
Thank you for your help!