2 tinyMCEPopup.resizeToInnerSize();
\r
5 function insertEmotion(file_name, title) {
\r
6 title = tinyMCE.getLang(title);
\r
12 title = title.replace(/&/g, '&');
\r
13 title = title.replace(/\"/g, '"');
\r
14 title = title.replace(/</g, '<');
\r
15 title = title.replace(/>/g, '>');
\r
17 var html = '<img src="' + tinyMCE.baseURL + "/plugins/emotions/images/" + file_name + '" mce_src="' + tinyMCE.baseURL + "/plugins/emotions/images/" + file_name + '" border="0" alt="' + title + '" title="' + title + '" />';
\r
19 tinyMCE.execCommand('mceInsertContent', false, html);
\r
20 tinyMCEPopup.close();
\r