close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

CKEditor not displaying correct font size

Thread began 10/07/2014 9:30 am by Christopher West | Last modified 10/08/2014 8:38 am by Christopher West | 6582 views | 7 replies

Christopher WestCommunity Expert

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:
<?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;
}

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...