Changeset 31485
- Timestamp:
- 02/20/2015 11:16:34 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/mce-view.js
r31466 r31485 878 878 wp.mce.views.register( 'embedURL', _.extend( {}, wp.mce.embedMixin, { 879 879 toView: function( content ) { 880 var re = /( ?:^|<p>)(https?:\/\/[^\s"]+?)(?:<\/p>\s*|$)/gi,880 var re = /(^|<p>)(https?:\/\/[^\s"]+?)(<\/p>\s*|$)/gi, 881 881 match = re.exec( tinymce.trim( content ) ); 882 882 … … 886 886 887 887 return { 888 index: match.index ,889 content: match[ 0],888 index: match.index + match[1].length, 889 content: match[2], 890 890 options: { 891 url: match[ 1]891 url: match[2] 892 892 } 893 893 };
Note: See TracChangeset
for help on using the changeset viewer.