Find and Replace"

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

(Final proof-reading)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__TOC__
+
__TOC__
<br>
+
The '''Find''' and '''Replace''' features allow you to quickly search the text as well as retain its consistency. They also make editing the text easier since you can batch change multiple occurrences of a phrase with just one mouse click instead of manually finding and modifying each one of them.
  
== Find<br> ==
+
Since both are closely related, they are implemented as one dialog window with two tabs that let you switch between the '''Find''' and '''Replace''' option.
  
To find a phrase/word in the text you should press [[Image:CKEditor_find.png]] button on the toolbar. A popup window called "Find and Replace" will appear:<br>
+
{{CKEditor Dialog Windows}}
  
[[Image:CKEditor_find_window.png]]<br>
+
<note>Note that because the default position of the dialog window is on top of the document in the editor, you might need to drag the '''Find and Replace''' window in order to see the highlighted terms.</note>
  
* '''Find what''': in this field you place the phrase/word you would like to find.<br>
 
* '''Match case''': if you check this option the program will find only the text with the exact cases like e.g. aLberT<br>
 
* '''Match whole word''': if you check this option the program will only look for a whole word. It will not look for a phrase.<br>
 
* '''Match cyclic''': if you check this option, when the program reaches the end of the text it begins searching from the top of the text.
 
  
After you select options you would like to use press “Find”. The program will highlight search results. If you press "'''Find'''" again the program will find the next phrase/word matching to your request.<br>
+
== Find ==
 +
If you want to find a word or a phrase in your document in a quick and efficient manner, use CKEditor '''Find''' command.
 +
 +
To open the appropriate dialog window, press the [[Image:CKEditor_find.png|Find]] button on the main editor toolbar.
  
== Replace<br> ==
+
This is what the '''Find and Replace''' dialog window looks like with the '''Find''' tab active:
  
To replace a phrase/word in your text press [[Image:CKEditor_find_replace..png]] button on the toolbar. A popup window will appear:<br>
+
[[Image:CKEditor_find_window.png|frame|center|The Find tab in the Find and Replace window]]
  
[[Image:CKEditor_replace_window.png]]<br>
 
  
* '''Find what''': in this field you place the phrase/word you would like find<br>
+
The '''Find''' tab consists of a search field and a few options that let you refine the search. Here is the overview of all '''Find''' tab elements:
* '''Replace with''': in this field you place the phrase/word you would like replace your text with.<br>
+
* '''Find what''' &ndash; is the text field where you enter the word or phrase that you want to find.
* '''Match case''': if you check this option the program will find only the text with the exact cases like e.g. aLberT
 
* '''Match whole word''': if you check this option the program will only look for a whole word. It will not look for a phrase.
 
* '''Match cyclic''': if you check this option when the program reaches the end of the text it begins searching from the top of the text.
 
<br>
 
  
To replace only one phrase/word press "'''Replace'''". The program will find and highlight the text. In order to continue a replacement process, press the "'''Replace'''" button again <br>
+
* '''Match case''' &ndash; checking this option limits the search operation to words whose case matches the spelling (uppercase and lowercase letters) given in the search field. This means that the search becomes case-sensitive.
To replace all the phrases/words press "'''Replace All'''".
+
*: Example:
 +
*: When '''Match case''' is checked and the search term is: "''option''", you will find all instances of "''option''" with this exact spelling but not when the word is spelled "''Option''" or "''OPTION''".
 +
* '''Match whole word''' &ndash; checking this option limits the search operation to whole words.
 +
*: Example:
 +
*: When '''Match whole word''' is checked and the search term is: "''option''", you will find all instances of "''option''", but not the words "''optional''" or "''options''".
 +
* '''Match cyclic''' &ndash; checking this option means that after CKEditor reaches the end of the document, the search continues from the beginning of the text. This option is checked by default.
 +
 
 +
After you enter the search term and select the options, press the '''Find''' button and CKEditor will highlight the first occurrence of the term in the text, starting from the current position of the cursor in text and going down. If you want to jump to the next occurrence of  the term in the text, press the '''Find''' button again.
 +
 
 +
== Replace==
 +
If you want to quickly find a word or phrase in your document and replace it, use CKEditor '''Replace''' command.
 +
 +
To open the appropriate dialog window, press the [[Image:CKEditor_find_replace.png|Replace]] button on the main editor toolbar.
 +
 
 +
This is what the '''Find and Replace''' dialog window looks like with the '''Replace''' tab active:
 +
 
 +
[[Image:CKEditor_replace_window.png|frame|center|The Replace tab in the Find and Replace window]]
 +
 
 +
The '''Replace''' tab consists of a search field, a replace field and a few options that let you refine the operation. Here is the overview of all '''Replace''' tab elements:
 +
* '''Find what''' &ndash; is the text field where you enter the word or phrase that you want replace in the document.
 +
 
 +
* '''Replace with''' &ndash; is the text field where you enter the word or phrase that will replace the search term in the document.
 +
 
 +
* '''Match case''' &ndash; checking this option limits the search and replace operation to words whose case matches the spelling (uppercase and lowercase letters) given in the search field. This means that the search and replace becomes case-sensitive.
 +
*: Example:
 +
*: When '''Match case''' is checked and the search term is: "''option''", you will find and replace all instances of "''option''" with this exact spelling, but not when the word is spelled "''Option''" or "''OPTION''".
 +
* '''Match whole word''' &ndash; checking this option limits the search and replace operation to whole words.
 +
*: Example:
 +
*: When '''Match whole word''' is checked and the search term is: "''option''", you will find and replace all instances of "''option''", but not the words "''optional''" or "''options''".
 +
* '''Match cyclic''' &ndash; checking this option means that after CKEditor reaches the end of the document, the search and replace continues from the beginning of the text. This option is checked by default.
 +
 
 +
After you enter the search term as well as the replace term and select the options, press the '''Replace''' button. CKEditor will highlight the first occurrence of the term in the text, starting from the current position of the cursor in text and going down. If you want to replace the highlighted term, click the '''Replace''' button once more. Then, if you want to jump to the next occurrence of  the term in the text, press the '''Replace''' button again.
 +
 
 +
You can also replace all occurrences of the search term in the document in one go. In order to do that, press the '''Replace All''' button. CKEditor will then replace all occurrences in the whole document at once and display a pop-up window with the result of the operation.
 +
 
 +
This is what the result window looks like:
 +
 
 +
[[Image:CKEditor_replace_result.png|frame|center|The result of the Replace operation]]

Latest revision as of 11:19, 13 December 2010

Contents

The Find and Replace features allow you to quickly search the text as well as retain its consistency. They also make editing the text easier since you can batch change multiple occurrences of a phrase with just one mouse click instead of manually finding and modifying each one of them.

Since both are closely related, they are implemented as one dialog window with two tabs that let you switch between the Find and Replace option.

For general information on using dialog windows please refer to the Dialog Windows section of the User's Guide.

important note
Note that because the default position of the dialog window is on top of the document in the editor, you might need to drag the Find and Replace window in order to see the highlighted terms.


Find

If you want to find a word or a phrase in your document in a quick and efficient manner, use CKEditor Find command.

To open the appropriate dialog window, press the Find button on the main editor toolbar.

This is what the Find and Replace dialog window looks like with the Find tab active:

The Find tab in the Find and Replace window


The Find tab consists of a search field and a few options that let you refine the search. Here is the overview of all Find tab elements:

  • Find what – is the text field where you enter the word or phrase that you want to find.
  • Match case – checking this option limits the search operation to words whose case matches the spelling (uppercase and lowercase letters) given in the search field. This means that the search becomes case-sensitive.
    Example:
    When Match case is checked and the search term is: "option", you will find all instances of "option" with this exact spelling but not when the word is spelled "Option" or "OPTION".
  • Match whole word – checking this option limits the search operation to whole words.
    Example:
    When Match whole word is checked and the search term is: "option", you will find all instances of "option", but not the words "optional" or "options".
  • Match cyclic – checking this option means that after CKEditor reaches the end of the document, the search continues from the beginning of the text. This option is checked by default.

After you enter the search term and select the options, press the Find button and CKEditor will highlight the first occurrence of the term in the text, starting from the current position of the cursor in text and going down. If you want to jump to the next occurrence of the term in the text, press the Find button again.

Replace

If you want to quickly find a word or phrase in your document and replace it, use CKEditor Replace command.

To open the appropriate dialog window, press the Replace button on the main editor toolbar.

This is what the Find and Replace dialog window looks like with the Replace tab active:

The Replace tab in the Find and Replace window

The Replace tab consists of a search field, a replace field and a few options that let you refine the operation. Here is the overview of all Replace tab elements:

  • Find what – is the text field where you enter the word or phrase that you want replace in the document.
  • Replace with – is the text field where you enter the word or phrase that will replace the search term in the document.
  • Match case – checking this option limits the search and replace operation to words whose case matches the spelling (uppercase and lowercase letters) given in the search field. This means that the search and replace becomes case-sensitive.
    Example:
    When Match case is checked and the search term is: "option", you will find and replace all instances of "option" with this exact spelling, but not when the word is spelled "Option" or "OPTION".
  • Match whole word – checking this option limits the search and replace operation to whole words.
    Example:
    When Match whole word is checked and the search term is: "option", you will find and replace all instances of "option", but not the words "optional" or "options".
  • Match cyclic – checking this option means that after CKEditor reaches the end of the document, the search and replace continues from the beginning of the text. This option is checked by default.

After you enter the search term as well as the replace term and select the options, press the Replace button. CKEditor will highlight the first occurrence of the term in the text, starting from the current position of the cursor in text and going down. If you want to replace the highlighted term, click the Replace button once more. Then, if you want to jump to the next occurrence of the term in the text, press the Replace button again.

You can also replace all occurrences of the search term in the document in one go. In order to do that, press the Replace All button. CKEditor will then replace all occurrences in the whole document at once and display a pop-up window with the result of the operation.

This is what the result window looks like:

The result of the Replace operation
This page was last edited on 13 December 2010, at 11:19.