TinyMCE: views: fix typo in createInstance
This prevented instances from being reused. Fixes #32591. git-svn-id: https://develop.svn.wordpress.org/trunk@32710 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
036c33caaa
commit
c345382dee
|
@ -156,14 +156,15 @@ window.wp = window.wp || {};
|
|||
encodedText,
|
||||
instance;
|
||||
|
||||
text = tinymce.DOM.decode( text ),
|
||||
encodedText = encodeURIComponent( text ),
|
||||
instance = this.getInstance( encodedText );
|
||||
text = tinymce.DOM.decode( text );
|
||||
instance = this.getInstance( text );
|
||||
|
||||
if ( instance ) {
|
||||
return instance;
|
||||
}
|
||||
|
||||
encodedText = encodeURIComponent( text );
|
||||
|
||||
options = _.extend( options || {}, {
|
||||
text: text,
|
||||
encodedText: encodedText
|
||||
|
|
Loading…
Reference in New Issue