npm install wangEditor-plugin-find-replace
import { Boot } from '@wangeditor/editor'
import findReplaceModule from 'wangEditor-plugin-find-replace'
// 注册。要在创建编辑器之前注册,且只能注册一次,不可重复注册。
Boot.registerModule(findReplaceModule)
const toolbar = createToolbar({
editor,
selector: '#toolbar-container',
config: {
insertKeys: {
index: 0,
keys: ['findReplace'],
},
},
})