From f3f129f44bc6320c21c77690c5e17c1f8da59bb0 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 31 Mar 2010 06:35:25 +0000 Subject: [PATCH] MINOR Saving TinyMCE editor focus in tinymce_ssbuttons plugin when sidepanel is opened (see #5263) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@101974 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/tinymce_ssbuttons/editor_plugin_src.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/javascript/tinymce_ssbuttons/editor_plugin_src.js b/javascript/tinymce_ssbuttons/editor_plugin_src.js index 26bd9188..781e6fd5 100644 --- a/javascript/tinymce_ssbuttons/editor_plugin_src.js +++ b/javascript/tinymce_ssbuttons/editor_plugin_src.js @@ -39,6 +39,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]); @@ -112,4 +113,4 @@ // Adds the plugin class to the list of available TinyMCE plugins tinymce.PluginManager.add("ssbuttons", tinymce.plugins.SSButtons); -})(); +})(); \ No newline at end of file