nabuch's picture
Joined: 05/12/2012
Posts: 7
Cannot unbold text from word

Hi,

I convert word file to HTML (with external library) and then I load it to CKEditor. But if in word file was Bold text I can't unbold the text in CKEditor. This is part of HTML which is loaded to CKEdiotr:

<span style="font-family: Arial; font-size: 10pt; font-style: italic;
                    font-weight: bold">«PISMO_DATA_2»</span>

 

I noticed that <b>«PISMO_DATA_2»</b> works fine. I can parse HTML but it is a lot of work (not only Bold option then I need to parse). Any other way to solve this problem? 

 

Regards,

Nabuch

nabuch's picture
Joined: 05/12/2012
Posts: 7
I have added following lines

I have added following lines to FCKConfig.CoreStyles:

 

 'Bold':
    {
        Element: 'span',
        Styles: { 'font-weight': '#("fontWeight")' },
        Overrides: [{ Element: 'font', Attributes: { 'bold': 'normal'}}]
    },

 

I can now unbold orginally bolded text. Unfortunaltelly not whole text. And I can't bold text again....

 

Please help me...

kiahua's picture
Joined: 01/03/2015
Posts: 3
It adds a toolbar button and

It adds a toolbar button and fix the SHIFT-SPACE keyboard shortcut

 

_________________

bella