am-editor icon indicating copy to clipboard operation
am-editor copied to clipboard

如何对关键字进行高亮?

Open smallCF opened this issue 3 years ago • 2 comments

使用pickcolor组件的设置方法,如何设置关键字高亮这个功能

smallCF avatar Jul 04 '22 02:07 smallCF

例如文档种有 共产党这种敏感词,高亮出来,标识,我找了一下没有看见这种的设置背景颜色的方法呢

smallCF avatar Jul 04 '22 02:07 smallCF

可以找到文字的 Range ,然后用 canvas 画一个

big-camel avatar Jul 04 '22 06:07 big-camel