importcss_selector_filter

This option enables you to only import classes from selectors matching the filter. The filter can be a string, regexp or a function see the examples below.

Example of usage with string filter

tinymce.init({
...
    importcss_selector_filter: ".my-prefix-"
});

Example of usage with RegExp filter

tinymce.init({
...
importcss_selector_filter: /\.prefix|\.otherprefix/
});

Example of usage with function filter

tinymce.init({
...
importcss_selector_filter: function(selector) {
return selector.indexOf('myprefix') !== -1;
}
});