Fixed bug #16805: htmlArea RTE: Clicking a label should set the focus on the input...
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 22 Dec 2010 05:07:58 +0000 (05:07 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Wed, 22 Dec 2010 05:07:58 +0000 (05:07 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9878 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js
typo3/sysext/rtehtmlarea/htmlarea/plugins/EditElement/edit-element.js
typo3/sysext/rtehtmlarea/htmlarea/plugins/RemoveFormat/remove-format.js

index 469148c..97b6c61 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
 2010-12-21  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #16760: RTE transformation removes all span tags on save after upgrade TYPO3 4.4.5
+       * Fixed bug #16805: htmlArea RTE: Clicking a label should set the focus on the input field
 
 2010-12-21  Steffen Kamper  <steffen@typo3.org>
 
index b31f4ce..ea189ef 100644 (file)
@@ -1,3 +1,7 @@
+2010-12-21  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed bug #16805: htmlArea RTE: Clicking a label should set the focus on the input field
+
 2010-12-04  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #16674: htmlARea RTE: Broken/missing labels in context menu
index 18c4206..580a1f2 100644 (file)
@@ -4629,23 +4629,12 @@ HTMLArea.Plugin = HTMLArea.Base.extend({
        getHelpTip: function (fieldName, label, pluginName) {
                if (Ext.isDefined(TYPO3.ContextHelp)) {
                        var pluginName = Ext.isDefined(pluginName) ? pluginName : this.name;
-                       return '<a class="t3-help-link" href="#" data-table="xEXT_rtehtmlarea_' + pluginName + '" data-field="' + fieldName + '"><abbr class="t3-help-teaser">' + this.localize(label) + '</abbr></a>';
+                       return '<span class="t3-help-link" href="#" data-table="xEXT_rtehtmlarea_' + pluginName + '" data-field="' + fieldName + '"><abbr class="t3-help-teaser">' + this.localize(label) + '</abbr></span>';
                } else {
                        return this.localize(label);
                }
        },
        /**
-        * Initiate context help listening on the dialogue window
-        * This is normally specified as render handler of the window
-        *
-        * @return      void
-        */
-       enableContextHelp: function () {
-               if (Ext.isDefined(TYPO3.ContextHelp) && Ext.isFunction(TYPO3.ContextHelp.openHelpWindow)) {
-                       Ext.select('div').on('click', TYPO3.ContextHelp.openHelpWindow, TYPO3.ContextHelp, {delegate: 'a.t3-help-link'});
-               }
-       },
-       /**
         * Load a Javascript file asynchronously
         *
         * @param       string          url: url of the file to load
index 97ae864..90641b2 100644 (file)
@@ -138,9 +138,6 @@ HTMLArea.EditElement = HTMLArea.Plugin.extend({
                        resizable: !Ext.isIE,
                        iconCls: this.getButton(buttonId).iconCls,
                        listeners: {
-                               render: {
-                                       fn: this.enableContextHelp
-                               },
                                close: {
                                        fn: this.onClose,
                                        scope: this
index f169870..9c5f2f9 100644 (file)
@@ -111,9 +111,6 @@ HTMLArea.RemoveFormat = HTMLArea.Plugin.extend({
                        resizable: !Ext.isIE,
                        iconCls: this.getButton(buttonId).iconCls,
                        listeners: {
-                               render: {
-                                       fn: this.enableContextHelp
-                               },
                                close: {
                                        fn: this.onClose,
                                        scope: this