egeloen / IvoryCKEditorBundle

Provides a CKEditor integration for your Symfony project.
MIT License
336 stars 114 forks source link

Attr class removed by CKeditor #252

Closed jbracoupeau closed 8 years ago

jbracoupeau commented 8 years ago

Hey guys, I have a problem, CKEditor removes attr "class" from the content, even if I added allowedContent: true in my config. All the rest of my config works fine, any idea ?

When I past code with classes, it saves it in my db with the classes, but if I want to edit the code, then classes are gone :/

CKEditor

ivory_ck_editor:
    configs:
        my_config:
            toolbar: [ ["Maximize", "-", "Source", "-", "Save"], .....]
            uiColor: "#FFFFFF"
            allowedContent: true
egeloen commented 8 years ago

AFAIR, allowContent is not enought in order to keep everything as entered in the editor... There is something called ACF for (Advenced Content Filter) which maybe is the root cause of your issue...

Unfortunatelly, this is all I know related to your issue, so, I can't help more...

egeloen commented 8 years ago

@jbracoupeau Does it help you?

jbracoupeau commented 8 years ago

Hi,

not really, I chose to do it another way, not using class attributes within the texts in CKEditor ;)

Thanks anyway, have a great week

egeloen commented 8 years ago

Ok, so let's close it as there is nothing wrong in the bundle :)

mssimi commented 7 years ago

Its not allowContent but allowedContent