includes/clientside/tinymce/plugins/emotions/editor_plugin_src.js
changeset 395 fa4c5ecb7c9a
parent 335 67bd3121a12e
equal deleted inserted replaced
394:fbfdcea634a7 395:fa4c5ecb7c9a
     1 /**
     1 /**
     2  * $Id: editor_plugin_src.js 408 2007-11-19 13:31:07Z spocke $
     2  * $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
     3  *
     3  *
     4  * @author Moxiecode
     4  * @author Moxiecode
     5  * @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved.
     5  * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
     6  */
     6  */
     7 
     7 
     8 (function() {
     8 (function() {
     9 	tinymce.create('tinymce.plugins.EmotionsPlugin', {
     9 	tinymce.create('tinymce.plugins.EmotionsPlugin', {
    10 		init : function(ed, url) {
    10 		init : function(ed, url) {
    11 			// Register commands
    11 			// Register commands
    12 			ed.addCommand('mceEmotion', function() {
    12 			ed.addCommand('mceEmotion', function() {
    13 				ed.windowManager.open({
    13 				ed.windowManager.open({
    14 					file : url + '/emotions.htm',
    14 					file : url + '/emotions.htm',
    15 					width : 250 + ed.getLang('emotions.delta_width', 0),
    15 					width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)),
    16 					height : 160 + ed.getLang('emotions.delta_height', 0),
    16 					height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)),
    17 					inline : 1
    17 					inline : 1
    18 				}, {
    18 				}, {
    19 					plugin_url : url
    19 					plugin_url : url
    20 				});
    20 				});
    21 			});
    21 			});