JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.6.1
[ckeditor.git] / _source / plugins / find / plugin.js
index bb5051e..e1a1aaa 100644 (file)
@@ -1,10 +1,11 @@
 /*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
 CKEDITOR.plugins.add( 'find',\r
 {\r
+       requires : [ 'dialog' ],\r
        init : function( editor )\r
        {\r
                var forms = CKEDITOR.plugins.find;\r
@@ -15,6 +16,7 @@ CKEDITOR.plugins.add( 'find',
                        });\r
                var findCommand = editor.addCommand( 'find', new CKEDITOR.dialogCommand( 'find' ) );\r
                findCommand.canUndo = false;\r
+               findCommand.readOnly = 1;\r
 \r
                editor.ui.addButton( 'Replace',\r
                        {\r