Skip to main content

Search & Replace

What it does

Provides search mechanisms for text and element searches. Also provides mechanisms to replace the found texts and elements.

Search Text Search for Element

Installation

First you have to switch into your project location using the command line.

cd path/to/your/project

Now you should be in the same directory as the package.json file. Then you can install the plugin as follows:

npm install @xeditor/plugin-searchreplace --save --registry https://npm.xeditor.com

Configuration

The default configuration of the plugin looks like this:

{
pluginId: 'searchreplace',
ptype: 'uxxeditorsearchreplace',
searchConfig: {
enableRegExpSearch: true,
smartSearchMode: 'enabled'
}
}

It should be placed in your plugin configuration file (plugins.js as default).

API

The API for the plugin can be found here