From c540110cba9080120958fb6d1ff99e5d00e3704c Mon Sep 17 00:00:00 2001 From: ralder Date: Tue, 5 Jan 2016 00:12:34 +0300 Subject: [PATCH] fix tinymce float toolbar not hide (fixes #1486) --- client/components/tinymce/plugins/wpcom/plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/tinymce/plugins/wpcom/plugin.js b/client/components/tinymce/plugins/wpcom/plugin.js index 468b332f0badf..56eadd6e7401b 100644 --- a/client/components/tinymce/plugins/wpcom/plugin.js +++ b/client/components/tinymce/plugins/wpcom/plugin.js @@ -630,9 +630,9 @@ function wpcomPlugin( editor ) { if ( activeToolbar ) { activeToolbar.hide(); - if ( event.type === 'hide' ) { + if ( event.type === 'hide' || event.type === 'blur' ) { activeToolbar = false; - } else if ( event.type === 'resize' || event.type === 'scroll' ) { + } else if ( event.type === 'resizewindow' || event.type === 'scroll' ) { clearTimeout( timeout ); timeout = setTimeout( function() {