You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
815 B
29 lines
815 B
= Search and Replace plugin
|
|
:navtitle: Search and Replace
|
|
:description: Find and replace content in TinyMCE.
|
|
:keywords: searchreplace, edit
|
|
:pluginname: Search and Replace
|
|
:plugincode: searchreplace
|
|
|
|
This plugin adds search/replace dialogs to {productname}. It also adds a toolbar button and the menu item `+Find and replace+` under the `+Edit+` menu dropdown.
|
|
|
|
== Basic setup
|
|
|
|
[source,js]
|
|
----
|
|
tinymce.init({
|
|
selector: 'textarea', // change this value according to your HTML
|
|
plugins: 'searchreplace',
|
|
toolbar: 'searchreplace'
|
|
});
|
|
----
|
|
|
|
include::partial$misc/plugin-toolbar-button-id-boilerplate.adoc[]
|
|
|
|
include::partial$misc/plugin-menu-item-id-boilerplate.adoc[]
|
|
|
|
== Commands
|
|
|
|
The Search and Replace plugin provides the following {productname} command.
|
|
|
|
include::partial$commands/searchreplace-cmds.adoc[]
|