The style property groups is not an exhaustive list so the function should allow other modules to alter with new groups and rules. Example: 'page-break-after'

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

recrit’s picture

Status: Active » Needs review
FileSize
493 bytes

the attached patch adds a drupal_alter to the function wysiwyg_filter_get_style_property_groups.

Example usage:

/**
 * Implementation of hook_wysiwyg_filter_style_property_groups_alter().
 */
function mymodule_wysiwyg_filter_style_property_groups_alter(&$groups) {
  $groups += array(
    'page-break' => array(
      'title' => t('Page break'),
      'properties' => array(
        'page-break-after' => '(?:auto|always|avoid|left|right|inherit)',
        'page-break-before' => '(?:auto|always|avoid|left|right|inherit)',
        'page-break-inside' => '(?:auto|avoid|inherit)',
      ),
    ),
  );
}

  • axel.rutz committed 94ad071 on 7.x-1.x authored by recrit
    Issue #1931306 by recrit: Allow altering of style property groups
    

geek-merlin’s picture

Issue summary: View changes
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.