Contribute to this guideReport an issue

Find and Replace Documentation

Searching and replacing capabilities in CKEditor 4 are provided by the Find and Replace plugin which is available for download or can be added via the Online Builder.

Find and Replace Demo

Use the sample editor below to test the feature in action.

Get Sample Source Code

  • Find and Replace
    <!doctype html>
    <html lang="en">
      <meta charset="utf-8">
      <meta name="robots" content="noindex, nofollow">
      <title>Find and Replace</title>
      <script src=""></script>
      <textarea cols="80" id="editor1" name="editor1" rows="40" data-sample-long>
    &lt;h2&gt;Steam locos are really useful!&lt;/h2&gt;
    &lt;p&gt;&lt;img alt=&quot;Steam locomotives waiting at a small freight station.&quot; src=&quot;; style=&quot;float:right; height:223px; width:300px&quot; /&gt;&lt;/p&gt;
    &lt;p&gt;Steam locomotives waiting at a small freight station.&lt;/p&gt;
    &lt;p&gt;A steam locomotive is one that uses a steam engine as the prime source of power to move and pull the cars.&lt;/p&gt;
    &lt;p&gt;Steam locomotives are very popular today and can be seen working on all continents (with the exception of Antarctica maybe, where the railway network is rather scarce). Being powerful and not requiring additional technical infrastructure like their younger siblings &amp;mdash; the electric locomotives &amp;mdash; steam engines are perfect for most types of tasks.&lt;/p&gt;
    &lt;p&gt;Steam engines can pull passenger trains, boxcars with goods, tank cars, platform wagons with wood logs... Should the conditions be tough and the load be too heavy for a single steam locomotive, that can be put together in a pair of engines. And sometimes you can even see three of four of them if the job is exceptionally demanding.&lt;/p&gt;
    &lt;p&gt;Most national and private railway companies nowadays own or lease a multitude of steam engines, ranging from small, nimble ones used for maneuvering on the station to the bulky, large ones for the cross-continental trail.&lt;/p&gt;
    &lt;p&gt;Steam engines also come in all shapes and all colors, making up a happy useful bunch.&lt;/p&gt;
        CKEDITOR.replace('editor1', {
          plugins: 'wysiwygarea,toolbar,basicstyles,format,stylescombo,find,link,image',
          height: 450,
          toolbar: [{
              name: 'find',
              items: ['Find', 'Replace']
              name: 'document',
              items: ['Undo', 'Redo']
              name: 'basicstyles',
              items: ['Bold', 'Italic', 'Strike']
              name: 'links',
              items: ['Link', 'Unlink']
              name: 'insert',
              items: ['Image']
              name: 'styles',
              items: ['Format', 'Styles']