From ba7955862b17cb27908f31d69e480efef2a99374 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 4 Oct 2010 06:11:44 +0000 Subject: [PATCH] MINOR Saving TinyMCE editor focus in tinymce_ssbuttons plugin when sidepanel is opened (see #5263) (from r101974) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@111650 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/tinymce_ssbuttons/editor_plugin_src.js | 1 + 1 file changed, 1 insertion(+) diff --git a/javascript/tinymce_ssbuttons/editor_plugin_src.js b/javascript/tinymce_ssbuttons/editor_plugin_src.js index 5f257171..2b24c4e3 100644 --- a/javascript/tinymce_ssbuttons/editor_plugin_src.js +++ b/javascript/tinymce_ssbuttons/editor_plugin_src.js @@ -40,6 +40,7 @@ * If showCommand isn't set, then this will simply hide panels */ function showSidePanel(showCommand, hideCommands) { + ed.ss_focus_bookmark = ed.selection.getBookmark(); hideCommands.each(function(command) { ed.controlManager.setActive(command,false); Element.hide(forms[command]);