]> git.mxchange.org Git - friendica.git/blobdiff - library/tinymce/jscripts/tiny_mce/plugins/emotions/js/emotions.js
update tinymce to 3.5b2 to fix issues with FF 11 and pasting into code blocks
[friendica.git] / library / tinymce / jscripts / tiny_mce / plugins / emotions / js / emotions.js
old mode 100755 (executable)
new mode 100644 (file)
index c549367..b360f20
@@ -1,8 +1,29 @@
 tinyMCEPopup.requireLangPack();\r
 \r
 var EmotionsDialog = {\r
+       addKeyboardNavigation: function(){\r
+               var tableElm, cells, settings;\r
+                       \r
+               cells = tinyMCEPopup.dom.select("a.emoticon_link", "emoticon_table");\r
+                       \r
+               settings ={\r
+                       root: "emoticon_table",\r
+                       items: cells\r
+               };\r
+               cells[0].tabindex=0;\r
+               tinyMCEPopup.dom.addClass(cells[0], "mceFocus");\r
+               if (tinymce.isGecko) {\r
+                       cells[0].focus();               \r
+               } else {\r
+                       setTimeout(function(){\r
+                               cells[0].focus();\r
+                       }, 100);\r
+               }\r
+               tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', settings, tinyMCEPopup.dom);\r
+       }, \r
        init : function(ed) {\r
                tinyMCEPopup.resizeToInnerSize();\r
+               this.addKeyboardNavigation();\r
        },\r
 \r
        insert : function(file, title) {\r