Find and Replace

Purpose

The Find and Replace features allow you to quickly search the text, as well as change mutiple occurrences of a phrase with just one mouse click, instead of manually finding and modifying each of them individually. Since both are closely related, they are implemented as one dialog window with two tabs that let you switch between the Find and Replace options.

Find

To find a word or phrase in your document , press the  button on the main editor toolbar to access the "Find and Replace" dialog window.

The Find tab consists of a search field and a few options that allow you to refine the search.

  • Find what: 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 casing (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 instances when the word is written as "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 the Editor will highlight the first occurrence of the term in the text, starting from the current position of the cursor in the 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 the Replace command.

To open the appropriate dialog window, press the   button on the main editor toolbar. The Replace tab consists of a search field, a replace field and a few options that allow you to refine the operation.

  • Find what: Enter the word or phrase that you want to replace in the document.
  • Replace with: 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 casing (uppercase and lowercase letters) given in the search field. This means that the find 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 casing, but not when the word is written "Option" or "OPTION".
  • Match whole word: Checking this option limits the find 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 continues from the beginning of the text. This option is checked by default.

After you enter the search term, the replace term, and select the options, press the Replace button. The Editor will highlight the first occurrence of the term in the text, starting from the current position of the cursor in the 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 at one time. Press the Replace All button. The Editor will then replace all occurrences in the whole document at once and display a pop-up window with the result of the operation.