Hello,
Im trying to set the default font-family and font-size of the text within the editor. So we are prepopulating the editor with text. How do I format this prepopulated text as 12pt Times New Roman? As a side note, I did find in the documentation how to adjust and default the font names in the toolbar. But I have yet to find out how to default to a different size and style of font.
Can someone point me in the right direction? Any advice is appreciated.
Im trying to set the default font-family and font-size of the text within the editor. So we are prepopulating the editor with text. How do I format this prepopulated text as 12pt Times New Roman? As a side note, I did find in the documentation how to adjust and default the font names in the toolbar. But I have yet to find out how to default to a different size and style of font.
Can someone point me in the right direction? Any advice is appreciated.
Re: Default Font-size and Font-family
<textarea name="html_content" class="ckeditor" ><font style="font-family:'Times New Roman', Times, serif; font-size:12pt;">This is some default Text<font></textarea>
<script type="text/javascript">
CKEDITOR.replace( 'html_content',
{
scayt_autoStartup:true,
//resize_enabled:false,
//resize_maxWidth:'%',
font_defaultLabel:'Times New Roman',
fontSize_defaultLabel:'12px',
resize_dir:'vertical',
font_names :'Times New Roman',
disableNativeSpellChecker:false,
skin:'office2003',
uiColor:'#e6edf3',
height : '300',
resize_minHeight : '300',
width : '540',
dialog_magnetDistance : '1',
toolbar :
[
['Cut','Copy','Paste','-','Undo','Redo','-','PageBreak','Bold','Italic','Underline','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','Outdent','Indent'],
//['TextColor','BGColor'],
['TextColor','BGColor','-','BulletedList','NumberedList','-','SpellChecker','Scayt'],
]
}
);
</script>