Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2010
    Posts
    237
    Plugin Contributions
    0

    Default CKEditor default fonts

    Hi:

    I recently installed CKEditor to use in place of HTMLarea. I am having trouble getting the fonts and sizes right in comparison to what I already have using HTMLarea. I don't know what the default font and size is for this editor and what file I need to change to get what I want. Also, CKEditor seems to double space every paragraph.

    Any help would be appreciated. I am using 1.3.9h

    Dave

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: CKEditor default fonts

    What you are doing (or trying to do) is to INLINE EMBED or "hard-code" style declarations into html elements, rather than place these into a CSS stylesheet.

    While the result may LOOK ok, it is actually very bad practice to do this, and the technique is largely "deprecated". It's very bad for SEO too, because your text-to-html ratio is vastly reduced... It adds unnecessary load to the pages, and risks conflicting with proper CSS.

    Rather do it properly - for a site that VALIDATES better, is faster to use, and has better ranking potential on search engines.


    HOWEVER...

    If you site is in competition to any of my clients sites, then PLEASE continue doing inline embedding, because you will be one less competitor to worry about!
    20 years a Zencart User

  3. #3
    Join Date
    Feb 2010
    Posts
    237
    Plugin Contributions
    0

    Default Re: CKEditor default fonts

    Thanks for the interesting reply.

    I did, in fact, try the stylesheets first. Anywhere there was a font called out I changed it to Verdana. When I went back to check on the site I was confused because it did not have the effect I was expecting. That's what led to think that maybe the editor had a default setting.

    Anyway, how do I change the stylesheets to achieve what I am looking for? Verdana with the main product descriptions etc. 12 px. Do I have to change the stylesheets in the admin side also?

    Any help would be appreciated.

    Dave

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: CKEditor default fonts

    These days a lot of sites are using remotely-hosted fonts.

    https://developers.google.com/webfon...etting_started
    20 years a Zencart User

  5. #5
    Join Date
    Feb 2010
    Posts
    237
    Plugin Contributions
    0

    Default Re: CKEditor default fonts

    Wow!!!!

    That's about as far over my head as it could be. I understand the concept but the application is way beyond my knowledge.

    Could you give me a hint how to proceed? I would like to learn how to do this but I need some help.

    Dave

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: CKEditor default fonts

    Quote Originally Posted by top hatt View Post
    Could you give me a hint how to proceed? I would like to learn how to do this but I need some help.

    Dave
    The general skills required to embed this involve fairly basic knowledge of html page structuring (the PURPOSE of the HEADER section... the PURPOSE of the BODY section...)

    And as these skills are GENERAL, this forum is not the place to teach them.... MAINLY because they are taught in so many other places on the WWW, and there is no point re-inventing the wheel.

    Try w3schools.com for some good starter tutorials...
    20 years a Zencart User

  7. #7
    Join Date
    Aug 2012
    Posts
    1
    Plugin Contributions
    0

    Default Re: CKEditor default fonts

    Solution:
    It took me quite a while to figure this out.
    Let us say you want to use Verdana as the default font. Here is what you can do:

    1. Open contents.css and change the font tag:
    font-family: Verdana;

    2. In the application/page where the output will be published, add this style:
    <style>
    .entry-content {font-family: Tahoma;}
    </style>

    That's it! Now you have change the default font successfully. This works for the font size as well. I just finished developing a site which utilizes CKEditor and this tiny issue kept me awake for two days!

 

 

Similar Threads

  1. Replies: 14
    Last Post: 16 Feb 2012, 10:59 PM
  2. Fonts
    By katcole in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 4 Nov 2008, 08:29 PM
  3. HTMLarea default fonts and styles
    By torvista in forum Customization from the Admin
    Replies: 4
    Last Post: 30 Jun 2008, 06:54 AM
  4. Fonts from HTML Editor, ALL Page Heading Fonts...
    By khopek in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Feb 2008, 02:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR