From b1b0e54f7fc54f452a4f8b895c0cd8a82f23c6d8 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 6 Jun 2014 04:42:34 +0000 Subject: [PATCH] wpView: fire a `nodeChanged` event after selecting a view so the editor UI gets updated. Props avryl, fixes #28385 git-svn-id: https://develop.svn.wordpress.org/trunk@28686 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/tinymce/plugins/wpview/plugin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/js/tinymce/plugins/wpview/plugin.js b/src/wp-includes/js/tinymce/plugins/wpview/plugin.js index bbf9436efc..5639e6001d 100644 --- a/src/wp-includes/js/tinymce/plugins/wpview/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wpview/plugin.js @@ -94,6 +94,7 @@ tinymce.PluginManager.add( 'wpview', function( editor ) { // select the hidden div editor.selection.select( clipboard, true ); + editor.nodeChanged(); } /**