1 /** |
1 /** |
2 * $Id: editor_plugin_src.js 372 2007-11-11 18:38:50Z 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.SearchReplacePlugin', { |
9 tinymce.create('tinymce.plugins.SearchReplacePlugin', { |
10 init : function(ed, url) { |
10 init : function(ed, url) { |
11 function open(m) { |
11 function open(m) { |
12 ed.windowManager.open({ |
12 ed.windowManager.open({ |
13 file : url + '/searchreplace.htm', |
13 file : url + '/searchreplace.htm', |
14 width : 400 + ed.getLang('searchreplace.delta_width', 0), |
14 width : 400 + parseInt(ed.getLang('searchreplace.delta_width', 0)), |
15 height : 160 + ed.getLang('searchreplace.delta_height', 0), |
15 height : 160 + parseInt(ed.getLang('searchreplace.delta_height', 0)), |
16 inline : 1 |
16 inline : 1 |
17 }, { |
17 }, { |
18 mode : m, |
18 mode : m, |
19 search_string : ed.selection.getContent({format : 'text'}), |
19 search_string : ed.selection.getContent({format : 'text'}), |
20 plugin_url : url |
20 plugin_url : url |