includes/clientside/tinymce/plugins/example/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 201 2007-02-12 15:56:56Z spocke $
     2  * $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z 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 	// Load plugin specific language pack
     9 	// Load plugin specific language pack
    10 	tinymce.PluginManager.requireLangPack('example');
    10 	tinymce.PluginManager.requireLangPack('example');
    21 		init : function(ed, url) {
    21 		init : function(ed, url) {
    22 			// Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
    22 			// Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
    23 			ed.addCommand('mceExample', function() {
    23 			ed.addCommand('mceExample', function() {
    24 				ed.windowManager.open({
    24 				ed.windowManager.open({
    25 					file : url + '/dialog.htm',
    25 					file : url + '/dialog.htm',
    26 					width : 320 + ed.getLang('example.delta_width', 0),
    26 					width : 320 + parseInt(ed.getLang('example.delta_width', 0)),
    27 					height : 120 + ed.getLang('example.delta_height', 0),
    27 					height : 120 + parseInt(ed.getLang('example.delta_height', 0)),
    28 					inline : 1
    28 					inline : 1
    29 				}, {
    29 				}, {
    30 					plugin_url : url, // Plugin absolute URL
    30 					plugin_url : url, // Plugin absolute URL
    31 					some_custom_arg : 'custom arg' // Custom argument
    31 					some_custom_arg : 'custom arg' // Custom argument
    32 				});
    32 				});