equal
deleted
inserted
replaced
1 /** |
1 /** |
2 * $Id: editor_plugin_src.js 469 2007-12-02 18:32:56Z 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 var each = tinymce.each; |
9 var each = tinymce.each; |
10 |
10 |
398 return true; |
398 return true; |
399 |
399 |
400 if (user_interface) { |
400 if (user_interface) { |
401 inst.windowManager.open({ |
401 inst.windowManager.open({ |
402 url : url + '/row.htm', |
402 url : url + '/row.htm', |
403 width : 400 + inst.getLang('table.rowprops_delta_width', 0), |
403 width : 400 + parseInt(inst.getLang('table.rowprops_delta_width', 0)), |
404 height : 295 + inst.getLang('table.rowprops_delta_height', 0), |
404 height : 295 + parseInt(inst.getLang('table.rowprops_delta_height', 0)), |
405 inline : 1 |
405 inline : 1 |
406 }, { |
406 }, { |
407 plugin_url : url |
407 plugin_url : url |
408 }); |
408 }); |
409 } |
409 } |
415 return true; |
415 return true; |
416 |
416 |
417 if (user_interface) { |
417 if (user_interface) { |
418 inst.windowManager.open({ |
418 inst.windowManager.open({ |
419 url : url + '/cell.htm', |
419 url : url + '/cell.htm', |
420 width : 400 + inst.getLang('table.cellprops_delta_width', 0), |
420 width : 400 + parseInt(inst.getLang('table.cellprops_delta_width', 0)), |
421 height : 295 + inst.getLang('table.cellprops_delta_height', 0), |
421 height : 295 + parseInt(inst.getLang('table.cellprops_delta_height', 0)), |
422 inline : 1 |
422 inline : 1 |
423 }, { |
423 }, { |
424 plugin_url : url |
424 plugin_url : url |
425 }); |
425 }); |
426 } |
426 } |
429 |
429 |
430 case "mceInsertTable": |
430 case "mceInsertTable": |
431 if (user_interface) { |
431 if (user_interface) { |
432 inst.windowManager.open({ |
432 inst.windowManager.open({ |
433 url : url + '/table.htm', |
433 url : url + '/table.htm', |
434 width : 400 + inst.getLang('table.table_delta_width', 0), |
434 width : 400 + parseInt(inst.getLang('table.table_delta_width', 0)), |
435 height : 320 + inst.getLang('table.table_delta_height', 0), |
435 height : 320 + parseInt(inst.getLang('table.table_delta_height', 0)), |
436 inline : 1 |
436 inline : 1 |
437 }, { |
437 }, { |
438 plugin_url : url, |
438 plugin_url : url, |
439 action : value ? value.action : 0 |
439 action : value ? value.action : 0 |
440 }); |
440 }); |
794 // Setup template |
794 // Setup template |
795 var sp = getColRowSpan(tdElm); |
795 var sp = getColRowSpan(tdElm); |
796 |
796 |
797 inst.windowManager.open({ |
797 inst.windowManager.open({ |
798 url : url + '/merge_cells.htm', |
798 url : url + '/merge_cells.htm', |
799 width : 240 + inst.getLang('table.merge_cells_delta_width', 0), |
799 width : 240 + parseInt(inst.getLang('table.merge_cells_delta_width', 0)), |
800 height : 110 + inst.getLang('table.merge_cells_delta_height', 0), |
800 height : 110 + parseInt(inst.getLang('table.merge_cells_delta_height', 0)), |
801 inline : 1 |
801 inline : 1 |
802 }, { |
802 }, { |
803 action : "update", |
803 action : "update", |
804 numcols : sp.colspan, |
804 numcols : sp.colspan, |
805 numrows : sp.rowspan, |
805 numrows : sp.rowspan, |