TinyMCE wpView: prevent errors when pasting multiple non-embeddable URLs, props avryl, fixes #29268
Built from https://develop.svn.wordpress.org/trunk@29571 git-svn-id: http://core.svn.wordpress.org/trunk@29345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -561,6 +561,8 @@ window.wp = window.wp || {};
|
||||
setNodes: function () {
|
||||
if ( this.parsed ) {
|
||||
this.setIframes( this.parsed );
|
||||
} else if ( this.parsed === false ) {
|
||||
this.setContent( '<p>' + this.original + '</p>', 'replace' );
|
||||
}
|
||||
},
|
||||
|
||||
@@ -574,6 +576,9 @@ window.wp = window.wp || {};
|
||||
shortcode: this.shortcode.string()
|
||||
}
|
||||
} )
|
||||
.always( function() {
|
||||
self.parsed = false;
|
||||
} )
|
||||
.done( function( response ) {
|
||||
if ( response ) {
|
||||
self.parsed = response;
|
||||
|
||||
2
wp-includes/js/mce-view.min.js
vendored
2
wp-includes/js/mce-view.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user