CKEditor not displaying correct font size
Hello there, I am attaching a screenshot that should convey my issue.
I have setup CKEDITOR using the WebAssist HTML Editor. And my website template style sheet is displaying the correct fonts, colours and spacing inside the CKEDITOR interface...however the actual font size for H1,H2,H3... tags are not being correctly displayed in CKEDITOR interface (however when its saved to database the correct sizes for H1, H2, H3 etc are displayed on the front end of website..Obviously I could simply just select the font size in CKEDITOR for those H1, 2, H3 tags but I want to streamline it for my client so they dont need to select the actual font size.
In case required I am pasting the CKEDITOR instance code that I am using:
<?php
// The initial value to be displayed in the editor.
$CKEditor_initialValue = "";
$CKEditor = new CKEditor();
$CKEditor->basePath = "../../webassist/ckeditor/";
$CKEditor_config = array();
$CKEditor_config["wa_preset_name"] = "File Manager Enabled (custom)";
$CKEditor_config["wa_preset_file"] = "(custom)";
$CKEditor_config["width"] = "100%";
$CKEditor_config["height"] = "500px";
$CKEditor_config["docType"] = "<" ."!" ."DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";
$CKEditor_config["dialog_startupFocusTab"] = false;
$CKEditor_config["fullPage"] = false;
$CKEditor_config["tabSpaces"] = 4;
$CKEditor_config["filebrowserBrowseUrl"] = "webassist/kfm/index.php?uicolor=".urlencode(isset($CKEditor_config["uiColor"])?str_replace("#","#",$CKEditor_config["uiColor"]):"#eee")."&theme=webassist_v2&showsidebar=false&startup_folder=blog";
$CKEditor_config["toolbar"] = array(
array( 'Source'),
array( 'Cut','Copy','Paste','SpellChecker','Undo','Redo','SelectAll','RemoveFormat'),
array( 'NumberedList','BulletedList','Outdent','Indent','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'),
array( 'Link','Unlink'),
array( 'Bold','Italic','Underline','SpecialChar'),
array( 'Styles','Format','FontSize'),
array( 'Image'));
$CKEditor_config["contentsLangDirection"] = "ltr";
$CKEditor_config["entities"] = false;
$CKEditor_config["pasteFromWordRemoveFontStyles"] = false;
$CKEditor_config["pasteFromWordRemoveStyles"] = false;
$CKEditor_config["contentsCss"] = array("css/framework.min.css");
$CKEditor_config["bodyClass"] = "content-main";
$CKEditor->editor("blogcontent", $CKEditor_initialValue, $CKEditor_config);
?>
Any ideas how I can get the H1, H2, H3 tags in the CKEDITOR to correctly display its font size that I have setup in my main website style sheet?
current in my CSS file I have the following code to set up these tags:
Im just confused why CKEDITOR DOES display correctly the font type, colour and spacing for these tags but not size?
h1 {
font-family: 'andada_scregular';
font-size: 30px;
margin-bottom: 30px;
font-weight: 400;
line-height: normal;
color: #ff318e;
text-align: left;
letter-spacing: 2px;
border-bottom: 1px solid #DDDDDD;
margin-top: 10px;
}
h2 {
font-family: 'andada_scregular';
font-size: 22px;
font-weight: 400;
line-height: normal;
color: #ff318e;
text-align: left;
letter-spacing: 2px;
}
h3 {
font-family: 'andadaregular';
font-size: 26px;
font-weight: 400;
line-height: normal;
color: #515151;
text-align: left;
letter-spacing: 1px;
}