I have been using summernote as my default text editor but I haven't been able to set a particular font-size by default when i initialize it.
so far I have tried
$('.active-textcontainer').summernote({
toolbar: [
['style', ['bold', 'italic', 'underline']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']]
],
height:150,
fontsize:'18px'
});
and
$('.active-textcontainer').summernote({
toolbar: [
['style', ['bold', 'italic', 'underline']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']]
],
height:150,
fontsize:'18'
});
Ant help will be appreciated.
fontSize
with an upper-caseS
? – AgresticfontSize:'18px'
,fontSize:18
,font-size
... with no luck, then I take a look onsummernote
and the easy way I saw it's to use$('.note-editable').css('font-size','18px');
as I explain in the answer. – Weissman