Problem with tag <code> always disappear on Drupal CKEditor? Try to disable Advanced Content Filter (ACF)

  • Posted on: 23 July 2014
  • By: oon
Drupal Advanced Content Filter

Start from CKEditor 4.1 [1], it has core feature that limit HTML code, configurable Advanced Content Filter (ACF).

If you have special use of HTML tag, for example tag <code> on syntax highlight, you have to change the ACF configuration, so the tag won't be stripped everytime you save your Drupal node.

Change it on Menu Configuration > CKEditor > Full > Advanced Content Filter. (shown on image)

[1]http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter

Tags: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.