TinyMCE: wpView: fix typo in createInstance that prevented instances from being reused.

Props iseulde. Fixes #32591 for 4.2.
Built from https://develop.svn.wordpress.org/branches/4.2@33314


git-svn-id: http://core.svn.wordpress.org/branches/4.2@33286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2015-07-17 21:22:27 +00:00
parent 020f33ba74
commit 22e22a3db7
2 changed files with 5 additions and 4 deletions

View File

@ -155,14 +155,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

File diff suppressed because one or more lines are too long