includes/clientside/tinymce/plugins/advimage/editor_plugin_src.js
changeset 395 fa4c5ecb7c9a
parent 335 67bd3121a12e
child 543 dffcbfbc4e59
equal deleted inserted replaced
394:fbfdcea634a7 395:fa4c5ecb7c9a
     1 /**
     1 /**
     2  * $Id: editor_plugin_src.js 373 2007-11-12 17:57:47Z 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.AdvancedImagePlugin', {
     9 	tinymce.create('tinymce.plugins.AdvancedImagePlugin', {
    10 		init : function(ed, url) {
    10 		init : function(ed, url) {
    16 				if (ed.dom.getAttrib(e, 'class').indexOf('mceItem') != -1)
    16 				if (ed.dom.getAttrib(e, 'class').indexOf('mceItem') != -1)
    17 					return;
    17 					return;
    18 
    18 
    19 				ed.windowManager.open({
    19 				ed.windowManager.open({
    20 					file : url + '/image.htm',
    20 					file : url + '/image.htm',
    21 					width : 480 + ed.getLang('advimage.delta_width', 0),
    21 					width : 480 + parseInt(ed.getLang('advimage.delta_width', 0)),
    22 					height : 385 + ed.getLang('advimage.delta_height', 0),
    22 					height : 385 + parseInt(ed.getLang('advimage.delta_height', 0)),
    23 					inline : 1
    23 					inline : 1
    24 				}, {
    24 				}, {
    25 					plugin_url : url
    25 					plugin_url : url
    26 				});
    26 				});
    27 			});
    27 			});