Вход Регистрация
Файл: public_html/tpl/tiny_mce/plugins/emotions/js/emotions.js
Строк: 56
<?php
tinyMCEPopup
.requireLangPack();

var 
EmotionsDialog = {
    
addKeyboardNavigation: function(){
        var 
tableElmcellssettings;
            
        
cells tinyMCEPopup.dom.select("a.emoticon_link""emoticon_table");
            
        
settings ={
            
root"emoticon_table",
            
itemscells
        
};
        
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'settingstinyMCEPopup.dom);
    }, 
    
init : function(ed) {
        
tinyMCEPopup.resizeToInnerSize();
        
this.addKeyboardNavigation();
    },

    
insert : function(filetitle) {
        var 
ed tinyMCEPopup.editordom ed.dom;

        
tinyMCEPopup.execCommand('mceInsertContent'falsedom.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.initEmotionsDialog);
?>
Онлайн: 2
Реклама