Edison Wong: How to solve FCKeditor background color conflict with Drupal theme

When working with Drupal theme sometime its body CSS may define as color other than white as below:

  body
  {
    color: #FFF;
    background-color: #000;
  }

Therefore FCKeditor will inheritance its color within editor area and so break the layout.

Here is a quick workaround. Edit your fckconfig.js (e.g. sites/all/modules/fckeditor//fckeditor/fckconfig.js as below:

FCKConfig.EditorAreaStyles = 'body {color: #000; background-color: #FFF;}' ;

Remember to clean both Drupal and your browser cache. Done.

References:

read more

آخر المشاركات

 

أوسمة الموقع