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 | | |