Make WordPress Core

Ticket #22799: 22799.patch

File 22799.patch, 969 bytes (added by azaozz, 11 years ago)
  • wp-includes/class-wp-editor.php

     
    327327                                                        {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'right'}},
    328328                                                        {selector : 'img,table', classes : 'alignright'}
    329329                                                ],
    330                                                 strikethrough : {inline : 'del'}
     330                                                strikethrough : {inline : 'del'},
     331                                                removeformat : [
     332                                                        {selector : 'b,strong,em,i,font,u,strike,del,ins,small,big,s', remove : 'all', split : true, expand : false, block_expand : true, deep : true},
     333                                                        {selector : 'span', attributes : ['style', 'class'], remove : 'empty', split : true, expand : false, deep : true},
     334                                                        {selector : '*', attributes : ['style', 'class'], split : false, expand : false, deep : true}
     335                                                ]
    331336                                        }",
    332337                                        'relative_urls' => false,
    333338                                        'remove_script_host' => false,