X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fstylesheetparser%2Fplugin.js;h=23ffc85e1933df8638258963ce8af85fdb0ae1b5;hp=92624d93414d7c6c922d7054001751f09a6326d8;hb=f0610347140239143439a511ee2bd48cb784f470;hpb=4e70ea24db840898be8cc21c950363a52a2a6aba diff --git a/_source/plugins/stylesheetparser/plugin.js b/_source/plugins/stylesheetparser/plugin.js index 92624d9..23ffc85 100644 --- a/_source/plugins/stylesheetparser/plugin.js +++ b/_source/plugins/stylesheetparser/plugin.js @@ -119,25 +119,30 @@ For licensing, see LICENSE.html or http://ckeditor.com/license /** - * Regular Expression to check if a css rule must be skipped by - * the stylesheet parser plugin (so it's ignored and not available) + * A regular expression that defines whether a CSS rule will be + * skipped by the Stylesheet Parser plugin. A CSS rule matching + * the regular expression will be ignored and will not be available + * in the Styles drop-down list. * @name CKEDITOR.config.stylesheetParser_skipSelectors * @type RegExp * @default /(^body\.|^\.)/i * @since 3.6 + * @see CKEDITOR.config.stylesheetParser_validSelectors * @example - * // Ignore rules for body, caption, only a class or classes starting with "high". + * // Ignore rules for body and caption elements, classes starting with "high", and any class defined for no specific element. * config.stylesheetParser_skipSelectors = /(^body\.|^caption\.|\.high|^\.)/i; */ /** - * Regular Expression to check if a css rule must be allowed by - * the stylesheet parser plugin + * A regular expression that defines which CSS rules will be used + * by the Stylesheet Parser plugin. A CSS rule matching the regular + * expression will be available in the Styles drop-down list. * @name CKEDITOR.config.stylesheetParser_validSelectors * @type RegExp * @default /\w+\.\w+/ * @since 3.6 + * @see CKEDITOR.config.stylesheetParser_skipSelectors * @example - * // Add only rules for p and span elements. + * // Only add rules for p and span elements. * config.stylesheetParser_validSelectors = /\^(p|span)\.\w+/; */