Hello
Can I change background in the editor window? Default is the same as my main page, but I want to change it or leave it blank - how can I do this?
This is for me really important
thank you very much
Regards,
Pawi
Hello
Can I change background in the editor window? Default is the same as my main page, but I want to change it or leave it blank - how can I do this?
This is for me really important
thank you very much
Regards,
Pawi
Comments
Comment #1
camhowardThere are several methods that can be used to change the background color of the CKEditor.
Here is one that works for me.
Go to Administer > Site configuration > CKEditor
Decide which Profile you want to edit first, such as Default or Advanced, and click on the "Edit" link next to the profile name.
On the "Edit CKEditor Profile" page, click on the link for "CSS."
The first field in the "CSS" fieldset, labeled "Editor CSS" allows you to select the theme CSS, the CKEditor default, or to define the CSS file you want to use for the editor.
If it is set to "Use theme CSS" the editor is using whatever color is defined by the theme for the body or page background for the site.
Change the "Editor CSS" to "CKEditor default" and click the "Save" button at the bottom of the page. They edit a page and see if CKEditor displays with a white background in the editor. The potential downside of this is that the editor will then no longer display any of the fonts being used by the theme.
One way around this is to create a CSS file that includes the fonts and any other elements you want to include in the editor and doesn't include any background color for the body or other elements. Then you can select "Define CSS" for the "Editor CSS" and type the path to the CSS file in the second field, labeled "CSS path."
Repeat as needed for each CKEditor profile.
If you want to use the theme CSS without editing it or creating a new CSS file, try using the Tips & Tricks tutorial at http://drupal.ckeditor.com/tricks?page=3 to edit the ckeditor.config.js file.
If you need more ideas, a Google search on "drupal ckeditor change background color" will result in several possibilities.
Hope this helps!
Comment #2
pawi81 commentedthx of course it helped
Comment #3
escoles commentedAt this point, I'm having the same problem, and all of the suggested solutions are either inappropriate or don't appear to work.
1: Changing to "editor CSS" will only work if you don't need to show text WYSIWYG with regard to the site's stylesheet.
2: Creating editor-custom stylesheets doesn't work around the problem of displaying/not-displaying a background color. That has to be done via the extraCSS variable in ckeditor.config.js.
3: the directions given at that URL are extremely vague, and only really seem to apply to Marinelli. They make reference to style classes that are used in Marinelli to identify certain containers that aren't specified; to figure out how they work, we'd have to download Marinelli and pore through the page template.