X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=app%2Fout%2Fdefault%2Ftiny_mce%2Fplugins%2Femotions%2Fjs%2Femotions.js;fp=app%2Fout%2Fdefault%2Ftiny_mce%2Fplugins%2Femotions%2Fjs%2Femotions.js;h=c549367096fc801fa12cb6f61261a12f4fd9ed17;hb=39c5f621306c7d52f55521fd3565dfd482e4cad8;hp=0000000000000000000000000000000000000000;hpb=7723ab06be1169381b79ac13cc03ca290367d765;p=mw_pages diff --git a/app/out/default/tiny_mce/plugins/emotions/js/emotions.js b/app/out/default/tiny_mce/plugins/emotions/js/emotions.js new file mode 100644 index 0000000..c549367 --- /dev/null +++ b/app/out/default/tiny_mce/plugins/emotions/js/emotions.js @@ -0,0 +1,22 @@ +tinyMCEPopup.requireLangPack(); + +var EmotionsDialog = { + init : function(ed) { + tinyMCEPopup.resizeToInnerSize(); + }, + + 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);