Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

Whitelist for classes can be overriden to allow all classes through with * option #341

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jakcharlton
Copy link

The classes option was proving too limiting being whitelisted only.

This change allows all classes to be carried over by using a "*" in the classes hash

"classes": { "*":1 } will allow all classes to be carried over, otheriwse only those whitelisted

@jamisonvalenta
Copy link

Thanks @jakcharlton - working great for me!

@@ -36,6 +36,7 @@ var wysihtml5ParserRules = {
/**
* CSS Class white-list
* Following CSS classes won't be removed when parsed by the wysihtml5 HTML parser
"classes": { "*":1 } will allow all classes to be carried over, otheriwse only those whitelisted

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants