Changeset 22162
- Timestamp:
- 10/10/2012 10:52:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/mce-view.js
r22155 r22162 326 326 // and add an ending marker to the wrapper to help regexes 327 327 // scan the HTML string. 328 wrapper.empty().append( view.el ).append('<span data-wp-view-end ></span>');328 wrapper.empty().append( view.el ).append('<span data-wp-view-end class="wp-view-end"></span>'); 329 329 }); 330 330 }, … … 334 334 // their respective text representations. 335 335 toText: function( content ) { 336 return content.replace( /<(?:div|span)[^>]+data-wp-view="([^"]+)"[^>]*>.*?<span 336 return content.replace( /<(?:div|span)[^>]+data-wp-view="([^"]+)"[^>]*>.*?<span[^>]+data-wp-view-end[^>]*><\/span><\/(?:div|span)>/g, function( match, id ) { 337 337 var instance = instances[ id ], 338 338 view;
Note: See TracChangeset
for help on using the changeset viewer.