mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
opt: mark exact word
This commit is contained in:
parent
9c5e25971b
commit
923a46217b
|
@ -2185,7 +2185,7 @@ void ArticleView::highlightFTSResults()
|
|||
QString script = QString(
|
||||
"var context = document.querySelector(\"body\");\n"
|
||||
"var instance = new Mark(context);\n"
|
||||
"instance.mark(\"%1\");" )
|
||||
"instance.mark(\"%1\",{\"accuracy\": \"exactly\"});" )
|
||||
.arg( regString );
|
||||
|
||||
webview->page()->runJavaScript( script );
|
||||
|
|
Loading…
Reference in a new issue