Hello,
We have a problem in my webagency to apply CSS to CKEditor content with contents.css. It works on Firefox and Internet Explorer but on Chrome and Safari (on MAC), the CKEditor freezes the textarea (it's empty and we cannot write some text in) and don't show/use the classes (for examples, for styles, or templates) we create in contents.css !
I don't understand... Wait some help !
Thanks for your future help !
Best Regards,
Julien PEGE
B&B Communication
We have a problem in my webagency to apply CSS to CKEditor content with contents.css. It works on Firefox and Internet Explorer but on Chrome and Safari (on MAC), the CKEditor freezes the textarea (it's empty and we cannot write some text in) and don't show/use the classes (for examples, for styles, or templates) we create in contents.css !
I don't understand... Wait some help !
Thanks for your future help !
Best Regards,
Julien PEGE
B&B Communication
Re: Contents.css freeze CKEditor in Chrome & Safari
Re: Contents.css freeze CKEditor in Chrome & Safari
First, I create classes like ".titre_1" in contents.css:
.titre_1 {
font-weight: bold;
font-size: 36px;
}
Second, if I want class used by the styles of CKEditor (for example, it could be for the templates, same problem), I go to plugins/styles/styles/default.js and I write :
CKEDITOR.stylesSet.add('default',[{name:'Titre niveau 1',element:'h3',attributes:{class:'titre_1'}}]);
And, like I said, it works on Firefox or IE, but not on Chrome (PC & mac) and Safari (mac), it freezes the CKEditor.
Re: Contents.css freeze CKEditor in Chrome & Safari
Re: Contents.css freeze CKEditor in Chrome & Safari
Re: Contents.css freeze CKEditor in Chrome & Safari
Actually, I realize something :
I said it doesn't work on Chrome 'mac & pc) & Safari (mac), but in reality, it works when I refresh my page 5, 10 times... Why ?? I don't know, but sometimes the content appears and CKEditor don't freeze textarea and sometimes the content of the textarea disappear and the textarea freezes...
Can webkit be a reason ?
Re: Contents.css freeze CKEditor in Chrome & Safari