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
Entry preview lose formating if search field is used #5069
Entry preview lose formating if search field is used #5069
Comments
Issues is from the search highlighting of the search term. When you stop searching it's back to normal |
The highlighting is handled by this simple javascript code: jabref/src/main/java/org/jabref/gui/preview/PreviewViewer.java Lines 42 to 48 in dd4f0a0
|
I know nothing about JS. |
I have tried if this issue still remains in the master branch and not only does it lose formatting, it also jumps to the Author field automatically, so I am rewriting my Author after search finds a result. I would like to look at this issue and fix it. |
The problem is probably that we read the inner text (i.e everything without formatting) and then set it as the inner html. Should work if |
@tobiasdiez It is not that easy. That's what I did before. The problem is then that it displays and searches matches in html tags |
This should be fixed in the latest development version. Could you please check the build from http://builds.jabref.org/master/. Thanks! Please remember to make a backup of your library before trying-out this version. |
buhtzz commentedJun 20, 2019
Tried with current 5.* dev on Windows 10.
Entry preview looks nice.
But when I use the search field e.g.
keywords=lesen
orauthor=nord
then it looks like this.The text was updated successfully, but these errors were encountered: