CKEditor Filter
Categories
Component ID
2426261
Component name
CKEditor Filter
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
3499
Component created
Component changed
Component body
This module leverages simplehtmldom API and provides a simple, powerful interface for a general html text format filter.
This filter bypasses some of the issues set out in WYSIWYG Filter to create a simple restriction process not tied to regular expressions across HTML.
Configuration has 3 input fields:
- Valid 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
Example: "src,href,target,width,height,colspan,span,alt,name,title,class,id" - Valid Style properties
Example: "text-align,float,margin"
Any element, property, style not defined in the interface will be stripped out.
Requires:
Similar modules:
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.
