summaryrefslogtreecommitdiff
path: root/public/javascripts/tiny_mce/plugins/emotions/js
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-02-17 21:54:39 +0100
committerhukl <contact@smyck.org>2009-02-17 21:54:39 +0100
commitf61b5b0597e0c25f084ee67d402f12a43a7a9947 (patch)
tree3b4c3f9f38637f1a7ecf703ece4fd3bc4c6e2934 /public/javascripts/tiny_mce/plugins/emotions/js
parent3d3b786cc43266f6292f5edd25733dbb9bd6ed06 (diff)
added tinymce editor for body area of pages
Diffstat (limited to 'public/javascripts/tiny_mce/plugins/emotions/js')
-rwxr-xr-xpublic/javascripts/tiny_mce/plugins/emotions/js/emotions.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/public/javascripts/tiny_mce/plugins/emotions/js/emotions.js b/public/javascripts/tiny_mce/plugins/emotions/js/emotions.js
new file mode 100755
index 0000000..c549367
--- /dev/null
+++ b/public/javascripts/tiny_mce/plugins/emotions/js/emotions.js
@@ -0,0 +1,22 @@
1tinyMCEPopup.requireLangPack();
2
3var EmotionsDialog = {
4 init : function(ed) {
5 tinyMCEPopup.resizeToInnerSize();
6 },
7
8 insert : function(file, title) {
9 var ed = tinyMCEPopup.editor, dom = ed.dom;
10
11 tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', {
12 src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file,
13 alt : ed.getLang(title),
14 title : ed.getLang(title),
15 border : 0
16 }));
17
18 tinyMCEPopup.close();
19 }
20};
21
22tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog);