From a0109c4933e0bfb5ed9dbcf94f932991ca689542 Mon Sep 17 00:00:00 2001 From: svncommit Date: Thu, 14 Sep 2006 03:49:28 +0000 Subject: Initial TinyMCE editor support (still need to work on spellcheck and skins) --- .../tiny_mce/plugins/emotions/jscripts/functions.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 program/js/tiny_mce/plugins/emotions/jscripts/functions.js (limited to 'program/js/tiny_mce/plugins/emotions/jscripts/functions.js') diff --git a/program/js/tiny_mce/plugins/emotions/jscripts/functions.js b/program/js/tiny_mce/plugins/emotions/jscripts/functions.js new file mode 100644 index 000000000..95a9eafe8 --- /dev/null +++ b/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