From 73654a4e65c273641fe046b273d8b0ba5133e457 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 27 Apr 2020 15:13:51 +0200 Subject: [PATCH] Fix 'show/hide cke toolbar' button --- www/pad/inner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/pad/inner.js b/www/pad/inner.js index c037f8d0d..c77b99713 100644 --- a/www/pad/inner.js +++ b/www/pad/inner.js @@ -397,7 +397,7 @@ define([ var addToolbarHideBtn = function (framework, $bar) { // Expand / collapse the toolbar var cfg = { - element: $bar.find('.cke_toolbox_main') + element: $bar }; var onClick = function (visible) { framework._.sfCommon.setAttribute(['pad', 'showToolbar'], visible); @@ -672,7 +672,7 @@ define([ }); if (!framework.isReadOnly()) { - addToolbarHideBtn(framework, $contentContainer); + addToolbarHideBtn(framework, $('.cke_toolbox_main')); } else { $('.cke_toolbox_main').hide(); }