Make WordPress Core

Changeset 6547


Ignore:
Timestamp:
01/04/2008 08:49:35 AM (18 years ago)
Author:
ryan
Message:

Don't bust table markup when switching between visual and html. Props mdawaffe. fixes #5577

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js

    r6544 r6547  
    245245                // Handle table badness.
    246246                content = content.replace(new RegExp('<(table( [^>]*)?)>.*?<((tr|thead)( [^>]*)?)>', 'mg'), '<$1><$3>');
    247                 content = content.replace(new RegExp('<(tr|thead|tfoot)>.*?<((td|th)( [^>]*)?)>', 'mg'), '<$1><$2>');
     247                content = content.replace(new RegExp('<((?:tr|thead|tfoot)(?: [^>]*)?)>.*?<((td|th)( [^>]*)?)>', 'mg'), '<$1><$2>');
    248248                content = content.replace(new RegExp('</(td|th)>.*?<(td( [^>]*)?|th( [^>]*)?|/tr|/thead|/tfoot)>', 'mg'), '</$1><$2>');
    249                 content = content.replace(new RegExp('</tr>.*?<(tr|/table)>', 'mg'), '</tr><$1>');
     249                content = content.replace(new RegExp('</tr>.*?<(tr( [^>]*)?|/table)>', 'mg'), '</tr><$1>');
    250250                content = content.replace(new RegExp('<(/?(table|tbody|tr|th|td)[^>]*)>(\\s*|(<br ?/?>)*)*', 'g'), '<$1>');
    251251
  • trunk/wp-includes/script-loader.php

    r6546 r6547  
    3131        $this->add( 'colorpicker', '/wp-includes/js/colorpicker.js', false, '3517' );
    3232
    33         $this->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_gzip.php', false, '20070528' );
     33        // Modify this version when tinyMCE plugins are changed
     34        $this->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_gzip.php', false, '20080103' );
     35
    3436        $mce_config = apply_filters('tiny_mce_config_url', '/wp-includes/js/tinymce/tiny_mce_config.php');
    3537        $this->add( 'wp_tiny_mce', $mce_config, array('tiny_mce'), '20070528' );
Note: See TracChangeset for help on using the changeset viewer.