/BlogEngine/BlogEngine.NET/editors/tiny_mce_3_4_3_1/plugins/emotions/js/emotions.js
JavaScript | 22 lines | 17 code | 5 blank | 0 comment | 0 complexity | ca781c5bd11767e1bbd86934343d7d0e MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
- 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);