Search & replace
Searches for target text and replaces it with something else.
Plugin type: visual, non-system.
Supported editors: documents.
Download this plugin from GitHub and install it following the
desktop, on-premises,
or cloud installation instructions.
- Insert the search text into the document (this text is in the array arrCodes in the plugin code).
- Open the Plugins tab and press Example of search and replace.
- Enter the text you want to replace each field with and press the Ok button.
Repository on GitHub: https://github.com/ONLYOFFICE/sdkjs-plugins/tree/master/example_search_replace.
- config.json, index.html, and code.js
- Icons
{
"name" : "Example of search and replace",
"guid" : "asc.{5FF5F75F-2977-4B98-8D36-7C406D610B90}",
"variations" : [
{
"description" : "Example of search and replace",
"url" : "index.html",
"icons": [ "resources/light/icon.png", "resources/light/icon@2x.png" ],
"icons2": [
{
"style" : "light",
"100%": {
"normal": "resources/light/icon.png"
},
"125%": {
"normal": "resources/light/icon@1.25x.png"
},
"150%": {
"normal": "resources/light/icon@1.5x.png"
},
"175%": {
"normal": "resources/light/icon@1.75x.png"
},
"200%": {
"normal": "resources/light/icon@2x.png"
}
},
{
"style" : "dark",
"100%": {
"normal": "resources/dark/icon.png"
},
"125%": {
"normal": "resources/dark/icon@1.25x.png"
},
"150%": {
"normal": "resources/dark/icon@1.5x.png"
},
"175%": {
"normal": "resources/dark/icon@1.75x.png"
},
"200%": {
"normal": "resources/dark/icon@2x.png"
}
}
],
"isViewer" : true,
"EditorsSupport" : ["word"],
"isVisual" : true,
"isModal" : true,
"isInsideMode" : false,
"initDataType" : "none",
"initData" : "",
"buttons" : []
}
]
}
If you want to request a feature or report a bug regarding this plugin, use the issues section on GitHub.