Fixed bug #14349: htmlArea RTE: Unavailability of hot key map may cause plugin to...
authorStanislas Rolland <typo3@sjbr.ca>
Mon, 10 May 2010 03:41:45 +0000 (03:41 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Mon, 10 May 2010 03:41:45 +0000 (03:41 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7570 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js

index f2e4a3f..7b4f1dc 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2010-05-09  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Follow-up to feature #14014: htmlArea RTE should use version numbering method for CSS and JS files
+       * Fixed bug #14349: htmlArea RTE: Unavailability of hot key map may cause plugin to fail
 
 2010-05-07  Steffen Kamper  <info@sk-typo3.de>
 
index 1f34ebf..1dcd56a 100644 (file)
@@ -1,6 +1,7 @@
 2010-05-09  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Follow-up to feature #14014: htmlArea RTE should use version numbering method for CSS and JS files
+       * Fixed bug #14349: htmlArea RTE: Unavailability of hot key map may cause plugin to fail
 
 2010-05-07  Stanislas Rolland  <typo3@sjbr.ca>
 
index 33f1189..3cd2862 100644 (file)
@@ -1148,9 +1148,10 @@ HTMLArea.Iframe = Ext.extend(Ext.BoxComponent, {
                                hotKeys += key.toUpperCase();
                        }
                });
+                       // Make hot key map available, even if empty, so that plugins may add bindings
+               this.hotKeyMap = new Ext.KeyMap(documentElement);
                if (!Ext.isEmpty(hotKeys)) {
-                       this.hotKeyMap = new Ext.KeyMap(documentElement,
-                       {
+                       this.hotKeyMap.addBinding({
                                key: hotKeys,
                                ctrl: true,
                                shift: false,