2 * $Id: editor_plugin_src.js 686 2008-03-09 18:13:49Z spocke $
5 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
9 tinymce
.create('tinymce.plugins.SearchReplacePlugin', {
10 init : function(ed
, url
) {
12 ed
.windowManager
.open({
13 file
: url
+ '/searchreplace.htm',
14 width
: 320 + parseInt(ed
.getLang('searchreplace.delta_width', 0)),
15 height
: 302 + parseInt(ed
.getLang('searchreplace.delta_height', 0)),
20 search_string
: ed
.selection
.getContent({format
: 'text'}),
26 ed
.addCommand('mceSearch', function() {
30 ed
.addCommand('mceReplace', function() {
35 ed
.addButton('search', {title
: 'searchreplace.search_desc', cmd
: 'mceSearch'});
36 ed
.addButton('replace', {title
: 'searchreplace.replace_desc', cmd
: 'mceReplace'});
38 ed
.addShortcut('ctrl+f', 'searchreplace.search_desc', 'mceSearch');
41 getInfo : function() {
43 longname
: 'Search/Replace',
44 author
: 'Moxiecode Systems AB',
45 authorurl
: 'http://tinymce.moxiecode.com',
46 infourl
: 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/searchreplace',
47 version
: tinymce
.majorVersion
+ "." + tinymce
.minorVersion
53 tinymce
.PluginManager
.add('searchreplace', tinymce
.plugins
.SearchReplacePlugin
);