---
title: "Search and Replace plugin"
description: "Find and replace content in TinyMCE."
canonical_url: "https://www.tiny.cloud/docs/tinymce/latest/searchreplace/"
md_url: "https://www.tiny.cloud/docs/tinymce/5/searchreplace/index.md"
version: "5"
last_updated: "2024-04-16T01:50:26Z"
tokens: 132
---
Important This page documents TinyMCE 5. For new projects, Tiny recommends using the latest, most up-to-date version. [See TinyMCE 8 documentation](../../latest/searchreplace/).
# Search and Replace plugin

This plugin adds search/replace dialogs to TinyMCE. It also adds a toolbar button and the menu item `Find and replace` under the `Edit` menu dropdown.

## Basic setup

```js
tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  plugins: 'searchreplace',
  menubar: 'edit',
  toolbar: 'searchreplace'
});
```
