source: companies/celepar/news_admin/templates/celepar/fckeditor/to_delete/_samples/_plugins/findreplace/fckplugin.js @ 763

Revision 763, 1.5 KB checked in by niltonneto, 15 years ago (diff)

Importação inicial do Expresso da Celepar

Line 
1/*
2 * FCKeditor - The text editor for internet
3 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
4 *
5 * Licensed under the terms of the GNU Lesser General Public License:
6 *              http://www.opensource.org/licenses/lgpl-license.php
7 *
8 * For further information visit:
9 *              http://www.fckeditor.net/
10 *
11 * "Support Open Source software. What about a donation today?"
12 *
13 * File Name: fckplugin.js
14 *      This is the sample plugin definition file.
15 *
16 * File Authors:
17 *              Frederico Caldeira Knabben (fredck@fckeditor.net)
18 */
19
20// Register the related commands.
21FCKCommands.RegisterCommand( 'My_Find'          , new FCKDialogCommand( FCKLang['DlgMyFindTitle']       , FCKLang['DlgMyFindTitle']             , FCKConfig.PluginsPath + 'findreplace/find.html'       , 340, 170 ) ) ;
22FCKCommands.RegisterCommand( 'My_Replace'       , new FCKDialogCommand( FCKLang['DlgMyReplaceTitle'], FCKLang['DlgMyReplaceTitle']      , FCKConfig.PluginsPath + 'findreplace/replace.html', 340, 200 ) ) ;
23
24// Create the "Find" toolbar button.
25var oFindItem           = new FCKToolbarButton( 'My_Find', FCKLang['DlgMyFindTitle'] ) ;
26oFindItem.IconPath      = FCKConfig.PluginsPath + 'findreplace/find.gif' ;
27
28FCKToolbarItems.RegisterItem( 'My_Find', oFindItem ) ;                  // 'My_Find' is the name used in the Toolbar config.
29
30// Create the "Replace" toolbar button.
31var oReplaceItem                = new FCKToolbarButton( 'My_Replace', FCKLang['DlgMyReplaceTitle'] ) ;
32oReplaceItem.IconPath   = FCKConfig.PluginsPath + 'findreplace/replace.gif' ;
33
34FCKToolbarItems.RegisterItem( 'My_Replace', oReplaceItem ) ;    // 'My_Replace' is the name used in the Toolbar config.
Note: See TracBrowser for help on using the repository browser.