How can SCEditor be forced to start with Arial as its default font when it is empty? The default appears to be a Serif font - perhaps Times.
SCEditor - make the default font Arial
181 Views Asked by DroidOS At
2
There are 2 best solutions below
0
On
A bit late to the answer, but hope this helps anyone looking to set the Editor's default font.
Create the editor like this:
var obj = $('<selector>');
sceditor.create(obj, {
// Options go here
});
Then do
var instance = $(obj)[0]._sceditor;
instance.css('body { font-family: Helvetica, Arial, sans-serif; }');
Thanks.
The default style of WYSIWYG content is the browsers default style.
It can be changed by setting the
styleoption in the constructor. It's recommended to use (or base your style on) thecontent/default.min.cssstyle as it contains some other important CSS. Something like:or it can be set via the css() method, e.g.: