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'

Files: 

Comments

Status:Active» Needs review
StatusFileSize
new493 bytes

the attached patch adds a drupal_alter to the function wysiwyg_filter_get_style_property_groups.

Example usage:

<?php
/**
* 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)',
      ),
    ),
  );
}
?>