From a4332663cfcdb53b352c8646f78855ae3436cfec Mon Sep 17 00:00:00 2001 From: estadtherr Date: Thu, 14 Sep 2006 03:49:28 +0000 Subject: Initial TinyMCE editor support (still need to work on spellcheck and skins) git-svn-id: https://svn.roundcube.net/trunk@344 208e9e7b-5314-0410-a742-e7e81cd9613c --- .../tiny_mce/plugins/emotions/jscripts/functions.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 roundcubemail/program/js/tiny_mce/plugins/emotions/jscripts/functions.js (limited to 'roundcubemail/program/js/tiny_mce/plugins/emotions/jscripts') diff --git a/roundcubemail/program/js/tiny_mce/plugins/emotions/jscripts/functions.js b/roundcubemail/program/js/tiny_mce/plugins/emotions/jscripts/functions.js new file mode 100644 index 000000000..95a9eafe8 --- /dev/null +++ b/roundcubemail/program/js/tiny_mce/plugins/emotions/jscripts/functions.js @@ -0,0 +1,21 @@ +function init() { + tinyMCEPopup.resizeToInnerSize(); +} + +function insertEmotion(file_name, title) { + title = tinyMCE.getLang(title); + + if (title == null) + title = ""; + + // XML encode + title = title.replace(/&/g, '&'); + title = title.replace(/\"/g, '"'); + title = title.replace(//g, '>'); + + var html = '' + title + ''; + + tinyMCE.execCommand('mceInsertContent', false, html); + tinyMCEPopup.close(); +} -- cgit v1.2.3