Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document manipulation, highlighting. #348

Open
jd-s opened this issue Mar 27, 2024 · 0 comments
Open

Document manipulation, highlighting. #348

jd-s opened this issue Mar 27, 2024 · 0 comments

Comments

@jd-s
Copy link

jd-s commented Mar 27, 2024

Dear all,

I have been struggling with this issue for some days, but I am not sure if there is a solution - even after consulting the documentation, digging throught the code and even the related issues #261 #164 were no help.

My usecase is the following: The HTML contains several links with href and class. When hovering a link, all links with the same class should be highlighted. Usually, this is simple JavaScript changing the CSS of a particular class. In this case the only solution was to store the HTML, manipulate it at the OnHotSpotCovered event and call the LoadFromString method. However, this causes quite a long delay, making this solution unusable.

I was also trying to iterate through the different lists provided by HtmlViewer: LinkList does not seem to have references to changable objects, SectionList does not contain the Links (and in my case it simply contains nothing). I am also not sure at which class I should aim? TBlock?

Less difficult would be to simply manipulate the <style> block in , but I found no hint how to do this.

It would be great to hear if one of these solutions would work at all and if, how to start manipulating the HTML.

Thank you in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant