[Drupal] Class Name Filtering

Hoover, Ellen hoover.5 at osu.edu
Tue Dec 16 17:14:05 EST 2014


We’re experiencing D7, Panopoly WYSIWYG using Ckeditor stripping out class and even table HTML.

We had Advanced Content Filter disabled and it still happens.

We’ve tried setting the Mode to Automatic and adding content rules but that’s not working either.

Ellen

Ellen Hoover Asst. Director, Web Design and Development
The Ohio State University
College of Dentistry Marketing and Communication
1198 Postle Hall, 305 W. 12th Ave., Columbus, OH 43210
614-247-8946 Office
hoover.5 at osu.edu<mailto:hoover.5 at osu.edu> dentistry.osu.edu<http://dent.osu.edu/>



From: <Walker>, "Robert T." <walker.45 at osu.edu<mailto:walker.45 at osu.edu>>
Reply-To: Drupal users list <drupal at lists.osu.edu<mailto:drupal at lists.osu.edu>>
Date: Tuesday, December 16, 2014 at 2:03 PM
To: "drupal at lists.service.ohio-state.edu<mailto:drupal at lists.service.ohio-state.edu>" <drupal at lists.service.ohio-state.edu<mailto:drupal at lists.service.ohio-state.edu>>
Subject: [Drupal] Class Name Filtering

We're running D7 and Panopoly and the HTML editor is stripping out css classes that begin with hyphen (ex: class="button -alt" produces class="button"). I’ve found that allowed class names are filtered in the Rules for Class Names section of /admin/config/content/formats/panopoly_html_text but when I add -*, it says it’s an invalid expression. However, W3C says a single hyphen is allowed at the beginning of a class.

What’s the best way to get hyphen classes to be in output?

Thanks,
Rob

[The Ohio State University - Fisher College of Business]
Robert Walker
Application Developer
Information Technology Services
320F Mason Hall, 250 W. Woodruff Ave., Columbus, OH 43210
614-247-5477 Office
walker.45 at fisher.osu.edu<mailto:walker.45 at fisher.osu.edu>fisher.osu.edu<http://fisher.osu.edu/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osu.edu/pipermail/drupal/attachments/20141216/2e7023db/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6753 bytes
Desc: image001.png
URL: <http://lists.osu.edu/pipermail/drupal/attachments/20141216/2e7023db/attachment-0001.png>


More information about the Drupal mailing list