[SOLVED][Drupal FCKeditor] Fckeditor stripping style tags

| | 1 min read

A few Drupal users have encountered a situation where the FCKeditor removes the content within style tags. The output seems to come correctly with the styling included but the problem occurs when the user goes back to edit it when they realized that the inline stylesheet is missing. If you are facing this issue in your Drupal installation then read on to find out the solution.

Here is the fix.

  • Take care not to use filter_xss_admin ("Allows all tags that can be used inside an HTML body, save for scripts and styles.")
  • Instead use the field_view_field paying attention to the $display / $type | $settings argument

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.

Reference: http://drupal.org/node/136546