Text Highlighter - Dynamic

Highlights User-defined Text

< 腳本Text Highlighter - Dynamic的回應

評論:正評 - 腳本一切正常

§
發表於:2022-06-29

Hi there, is there a way to make this work on a form input field? id="forms.input" where the value has one of the keywords to be highlighted? I've checked and the js isn't ignoring ancestor::form

Many thanks

§
發表於:2022-06-30

This script highlights text by adding HTML into a text node. For example:

Before:

one two three

After:

one <span>two</span> three

I don't think that is possible in a text input.

發表回覆

登入以回覆

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

一年攒够 12 元

云驰互联

云驰互联