Important changes to Tiny Cloud pricing > Find out more

Search and Replace plugin

Find and replace content in TinyMCE.

Contribute to this page
+ toolbar button + menu item

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.

Type: String

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

Commands

The Search and Replace plugin provides the following JavaScript command.

Command Description
SearchReplace Opens the search and replace dialog.

Example

tinymce.activeEditor.execCommand('SearchReplace');

Can't find what you're looking for? Let us know.

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.