1 tinyMCEPopup.requireLangPack();
\r
3 var EmotionsDialog = {
\r
4 addKeyboardNavigation: function(){
\r
5 var tableElm, cells, settings;
\r
7 cells = tinyMCEPopup.dom.select("a.emoticon_link", "emoticon_table");
\r
10 root: "emoticon_table",
\r
13 cells[0].tabindex=0;
\r
14 tinyMCEPopup.dom.addClass(cells[0], "mceFocus");
\r
15 if (tinymce.isGecko) {
\r
18 setTimeout(function(){
\r
22 tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', settings, tinyMCEPopup.dom);
\r
24 init : function(ed) {
\r
25 tinyMCEPopup.resizeToInnerSize();
\r
26 this.addKeyboardNavigation();
\r
29 insert : function(file, title) {
\r
30 var ed = tinyMCEPopup.editor, dom = ed.dom;
\r
32 tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', {
\r
33 src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file,
\r
34 alt : ed.getLang(title),
\r
35 title : ed.getLang(title),
\r
39 tinyMCEPopup.close();
\r
43 tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog);
\r