Changes between Version 1 and Version 2 of Ticket #5966, comment 10


Ignore:
Timestamp:
Dec 22, 2013, 9:43:52 AM (8 years ago)
Author:
Roy Shoa
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5966, comment 10

    v1 v2  
    1 Are there is any way to prevent from the CKEditor to change the font-family property value to lower case ?
    2 
    3 I'am having a problem using Google Fonts. When I need to make the API request for a
    4 font it must be in case sensitive and I make the request according to the font that
    5 the user choose in '''my''' CKEditor font plugin.
    6 
    7 If the CKEditor change the font to lower case and I make a request to Google Fonts
    8 API I do not get the font CSS.
    9 
    10 Did anyone can give me a solution that I can use (even in my plugin) to fix this?
    11 
    12 This is the code that I am using now to change the font:
    13 
    14 
    15 {{{
    16                 var style = new CKEDITOR.style( {
    17                         element: 'span',
    18                         styles: { 'font-family': myFontFamily }
    19                 });
    20                
    21                 editor.applyStyle(style);
    22 }}}
    23 
© 2003 – 2021 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy