PHP Classes

File: Script/_server/library/PFBC/Resources/tiny_mce/plugins/emotions/js/emotions.js

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   H2OGame PHP Game Engine   Script/_server/library/PFBC/Resources/tiny_mce/plugins/emotions/js/emotions.js   Download  
File: Script/_server/library/PFBC/Resources/tiny_mce/plugins/emotions/js/emotions.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: H2OGame PHP Game Engine
Application to manage an online games platform
Author: By
Last change:
Date: 2 years ago
Size: 1,275 bytes
 

Contents

Class file image Download
tinyMCEPopup.requireLangPack(); var EmotionsDialog = { addKeyboardNavigation: function(){ var tableElm, cells, settings; cells = tinyMCEPopup.dom.select("a.emoticon_link", "emoticon_table"); settings ={ root: "emoticon_table", items: cells }; cells[0].tabindex=0; tinyMCEPopup.dom.addClass(cells[0], "mceFocus"); if (tinymce.isGecko) { cells[0].focus(); } else { setTimeout(function(){ cells[0].focus(); }, 100); } tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', settings, tinyMCEPopup.dom); }, init : function(ed) { tinyMCEPopup.resizeToInnerSize(); this.addKeyboardNavigation(); }, insert : function(file, title) { var ed = tinyMCEPopup.editor, dom = ed.dom; tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', { src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file, alt : ed.getLang(title), title : ed.getLang(title), border : 0 })); tinyMCEPopup.close(); } }; tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog);