bgneal@312: tinyMCEPopup.requireLangPack(); bgneal@312: bgneal@312: var EmotionsDialog = { bgneal@312: init : function(ed) { bgneal@312: tinyMCEPopup.resizeToInnerSize(); bgneal@312: }, bgneal@312: bgneal@312: insert : function(file, title) { bgneal@312: var ed = tinyMCEPopup.editor, dom = ed.dom; bgneal@312: bgneal@312: tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', { bgneal@312: src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file, bgneal@312: alt : ed.getLang(title), bgneal@312: title : ed.getLang(title), bgneal@312: border : 0 bgneal@312: })); bgneal@312: bgneal@312: tinyMCEPopup.close(); bgneal@312: } bgneal@312: }; bgneal@312: bgneal@312: tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog);