From c345382deefb5850097f96c9327d756f1654e27b Mon Sep 17 00:00:00 2001 From: Ella Iseulde Van Dorpe Date: Mon, 8 Jun 2015 19:53:35 +0000 Subject: [PATCH] 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 --- src/wp-includes/js/mce-view.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/js/mce-view.js b/src/wp-includes/js/mce-view.js index b28eac4c50..86638fcff6 100644 --- a/src/wp-includes/js/mce-view.js +++ b/src/wp-includes/js/mce-view.js @@ -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