includes/clientside/tinymce/plugins/searchreplace/editor_plugin_src.js
changeset 459 31c23016ab62
parent 395 fa4c5ecb7c9a
child 543 dffcbfbc4e59
equal deleted inserted replaced
458:c433348f3628 459:31c23016ab62
     1 /**
     1 /**
     2  * $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
     2  * $Id: editor_plugin_src.js 591 2008-02-12 17:32:21Z spocke $
     3  *
     3  *
     4  * @author Moxiecode
     4  * @author Moxiecode
     5  * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
     5  * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
     6  */
     6  */
     7 
     7 
     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 + parseInt(ed.getLang('searchreplace.delta_width', 0)),
    14 					width : 420 + parseInt(ed.getLang('searchreplace.delta_width', 0)),
    15 					height : 160 + parseInt(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'}),