fixing misplaced apostrophe
[koha.git] / koha-tmpl / intranet-tmpl / prog / fr / js / tinymce / jscripts / tiny_mce / plugins / emotions / jscripts / functions.js
1 function init() {\r
2         tinyMCEPopup.resizeToInnerSize();\r
3 }\r
4 \r
5 function insertEmotion(file_name, title) {\r
6         title = tinyMCE.getLang(title);\r
7 \r
8         if (title == null)\r
9                 title = "";\r
10 \r
11         // XML encode\r
12         title = title.replace(/&/g, '&');\r
13         title = title.replace(/\"/g, '"');\r
14         title = title.replace(/</g, '&lt;');\r
15         title = title.replace(/>/g, '&gt;');\r
16 \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
18 \r
19         tinyMCE.execCommand('mceInsertContent', false, html);\r
20         tinyMCEPopup.close();\r
21 }\r