source: trunk/admin/inc/ckeditor/_source/plugins/find/plugin.js@ 239

Last change on this file since 239 was 239, checked in by luc, 9 years ago

Admin: correzione visulaizzazione immissione dati spoglio per Chrome e Safari - Aggiornamento dell'editor da FCKeditor a CKeditor , accessibili anche a Chrome e Safari.

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1/*
2Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.html or http://ckeditor.com/license
4*/
5
6CKEDITOR.plugins.add( 'find',
7{
8 init : function( editor )
9 {
10 var forms = CKEDITOR.plugins.find;
11 editor.ui.addButton( 'Find',
12 {
13 label : editor.lang.findAndReplace.find,
14 command : 'find'
15 });
16 var findCommand = editor.addCommand( 'find', new CKEDITOR.dialogCommand( 'find' ) );
17 findCommand.canUndo = false;
18 findCommand.readOnly = 1;
19
20 editor.ui.addButton( 'Replace',
21 {
22 label : editor.lang.findAndReplace.replace,
23 command : 'replace'
24 });
25 var replaceCommand = editor.addCommand( 'replace', new CKEDITOR.dialogCommand( 'replace' ) );
26 replaceCommand.canUndo = false;
27
28 CKEDITOR.dialog.add( 'find', this.path + 'dialogs/find.js' );
29 CKEDITOR.dialog.add( 'replace', this.path + 'dialogs/find.js' );
30 },
31
32 requires : [ 'styles' ]
33} );
34
35/**
36 * Defines the style to be used to highlight results with the find dialog.
37 * @type Object
38 * @default { element : 'span', styles : { 'background-color' : '#004', 'color' : '#fff' } }
39 * @example
40 * // Highlight search results with blue on yellow.
41 * config.find_highlight =
42 * {
43 * element : 'span',
44 * styles : { 'background-color' : '#ff0', 'color' : '#00f' }
45 * };
46 */
47CKEDITOR.config.find_highlight = { element : 'span', styles : { 'background-color' : '#004', 'color' : '#fff' } };
Note: See TracBrowser for help on using the repository browser.