TinyMCE-FontAwesome-Plugin icon indicating copy to clipboard operation
TinyMCE-FontAwesome-Plugin copied to clipboard

Ability to use unicode icons instead of named icons

Open katzenmayer opened this issue 7 years ago • 1 comments

Previous versions of your plugin were using the unicode of an icon instead of the class name. While using class names is trivial in a default setup of TinyMCE, it's nearly impossible to use it together with TinyMCE's valid_classes setting.

valid_classes does not accept wildcards like fa-* so you need to either add every possible icon class to valid_classes, or not use valid_classes at all.

With the unicode approach, only 2 classes would need to be added to valid_classes: fa and fa-spin

Perhaps it would be possible to make this a config option?

katzenmayer avatar Nov 23 '17 15:11 katzenmayer

Sorry I don't really use this anymore so probably won't be making any further changes to it. Happy to accept a PR though

josh18 avatar Dec 04 '17 06:12 josh18