Hi,
I'm trying CKEditor and there's a problem I can't sort out. I should be a standard one but I didn't see any post in the forum about it.
I want that the style box takes styles from classes in my CSS file.
My '.imp' and '.normal' styles are correctly applied in the source code produced by CKEditor but I can't see a preview of the style in the dropdown box nor in the textarea.
Can anybody help me ?
Here is my code :
I'm trying CKEditor and there's a problem I can't sort out. I should be a standard one but I didn't see any post in the forum about it.
I want that the style box takes styles from classes in my CSS file.
My '.imp' and '.normal' styles are correctly applied in the source code produced by CKEditor but I can't see a preview of the style in the dropdown box nor in the textarea.
Can anybody help me ?
Here is my code :
$(function() {
var config = {
extraPlugins : 'autogrow',
//removePlugins :'elementspath',
autoGrow_maxHeight : 800,
stylesSet : [
// Block-level styles
{ name : '<% = lib_style_title1 %>', element : 'h2', attributes : { 'class' : '' } },
{ name : '<% = lib_style_important %>', element : 'span', attributes : { 'class' : 'imp' } },
{ name : '<% = lib_style_normal %>', element : 'span', attributes : { 'class' : 'normal' } },
]
};
$('.editor').ckeditor(config);
});
Re: Apply style from css file
Re: Apply style from css file
I added this line to my code, it's the jquery adapter version :