importcss_selector_filter

wrong

You don't have permissions to add new pages

You need to be an Wiki Member to be able to edit. Login and request access.

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;
}
});