Log in or register to post comments
Last post
motyl's picture
Joined: 15/12/2009
Posts: 3
Add background
Hi,
How i can add background image in editor ?
ctt
ctt's picture
Joined: 15/12/2009
Posts: 5
Re: Add background
First, put the background image into a CSS class. Put the class into a css file.

Before your .replace:
            
CKEDITOR.on( 'instanceReady', function( ev )
 {
        ev.editor.document.$.body.className = ev.editor.config.bodyClass;
        ev.editor.focus();
 });


In your replace:

CKEDITOR.replace( 'myEditor',
{
     /* all your other stuff */
      bodyClass:'theClassThatHoldsYourImage',
      contentsCss: ['PathTo/Your.css']
 } );


This used to be supported as-is in FCK, but it appears you need to do it manually in CK
motyl's picture
Joined: 15/12/2009
Posts: 3
Re: Add background
can you tell in what name file i must do that ?
motyl's picture
Joined: 15/12/2009
Posts: 3
Re: Add background
Can somebody help me ?