PageRenderTime 52ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. tinyMCEPopup.requireLangPack();
  2. var EmotionsDialog = {
  3. init : function(ed) {
  4. tinyMCEPopup.resizeToInnerSize();
  5. },
  6. insert : function(file, title) {
  7. var ed = tinyMCEPopup.editor, dom = ed.dom;
  8. tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', {
  9. src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file,
  10. alt : ed.getLang(title),
  11. title : ed.getLang(title),
  12. border : 0
  13. }));
  14. tinyMCEPopup.close();
  15. }
  16. };
  17. tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog);