查找并替换
查找目标文本并将其替换为其他内容。
插件类型: 可视化,非系统插件。
支持的编辑器: 文档。
安装方式
从 GitHub 下载该插件,并按照以下说明进行安装:桌面端、本地部署或云端。
使用方法
- 将要查找的文本插入文档(这些文本保存在插件代码中的 arrCodes 数组里)。
- 打开插件选项卡并点击示例:查找并替换。
- 输入你希望用于替换的文本,并点击确定按钮。
插件结构
GitHub 仓库:示例:查找并替换。
- config.json、index.html 和 code.js
- 图标
配置
{
"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": []
}
]
}
方法和事件
- button
- init
- onMethodReturn
- executeMethod ("SearchAndReplace")
支持
如需请求功能或报告此插件的问题,请通过 GitHub Issues 页面提交。