mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 08:34:08 +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(
|
QString script = QString(
|
||||||
"var context = document.querySelector(\"body\");\n"
|
"var context = document.querySelector(\"body\");\n"
|
||||||
"var instance = new Mark(context);\n"
|
"var instance = new Mark(context);\n"
|
||||||
"instance.mark(\"%1\");" )
|
"instance.mark(\"%1\",{\"accuracy\": \"exactly\"});" )
|
||||||
.arg( regString );
|
.arg( regString );
|
||||||
|
|
||||||
webview->page()->runJavaScript( script );
|
webview->page()->runJavaScript( script );
|
||||||
|
|
Loading…
Reference in a new issue