Open Yoduh opened 4 years ago
I had the same problem today. Found this solution that worked for me :
var editeur = createEditor('#saisie', {uploadUrl: '', id: '', classList: ["editeurnote"], fontName: [{val: 'Arial'}]});
editeur.$store.dispatch('execCommand', {name: 'fontName', value: 'Arial, sans-serif'})
editeur.$store.dispatch('execCommand', {name: 'fontSize', value: 12})
Is there any way to set the default font face and size? It seems that Times New Roman is always the default, even if it's not included in the fontName config. For example
I would expect arial black, or whatever font is listed first, to be the default font before the user picks any alternative. Same with font size.