You are here

README.txt in CKEditor Filter 7

This module leverages simplehtmldom API and provides a simple, powerful interface for a general html text format filter.

Configuration has 3 input fields:

-> Valid HTML elements
Html elements
Example:"p,a,div,span,h2,h3,h4,section,article,strong,b,i,em,cite,blockquote,small,sub,sup,code,ul,ol,li,dl,dt,dd,table,tbody,th,tr,td,img,caption,br,hr"

-> Valid element attributes
List of valid element attributes
Example: "src,href,target,width,height,colspan,span,alt,name,title,class,id"

-> Valid Style properties
List of allowed style values
Example: "text-align,float,margin"

Any element, property, style not defined in the interface will be stripped out.

Requires:
simplehtmldom API

Similar modules:
WYSIWYG Filter

Known Issues
If you have xdebug enabled, and your nesting function setting (xdebug.max_nesting_level) is set low, you may receive errors as this module uses a recursive dive in simplehtmldom to run through the HTML.

If styles are being stripped out despite proper configuration, please see https://www.drupal.org/node/2661152, as it may be related to PHP version / OS.

File

README.txt
View source
  1. This module leverages simplehtmldom API and provides a simple, powerful interface for a general html text format filter.
  2. Configuration has 3 input fields:
  3. -> Valid HTML elements
  4. Html elements
  5. Example:"p,a,div,span,h2,h3,h4,section,article,strong,b,i,em,cite,blockquote,small,sub,sup,code,ul,ol,li,dl,dt,dd,table,tbody,th,tr,td,img,caption,br,hr"
  6. -> Valid element attributes
  7. List of valid element attributes
  8. Example: "src,href,target,width,height,colspan,span,alt,name,title,class,id"
  9. -> Valid Style properties
  10. List of allowed style values
  11. Example: "text-align,float,margin"
  12. Any element, property, style not defined in the interface will be stripped out.
  13. Requires:
  14. simplehtmldom API
  15. Similar modules:
  16. WYSIWYG Filter
  17. Known Issues
  18. If you have xdebug enabled, and your nesting function setting (xdebug.max_nesting_level) is set low, you may receive errors as this module uses a recursive dive in simplehtmldom to run through the HTML.
  19. If styles are being stripped out despite proper configuration, please see https://www.drupal.org/node/2661152, as it may be related to PHP version / OS.