jabref: Changes in entry preview are not saved
JabRef 5.1–2020-05-04–b5599c9 Linux 4.9.0-12-amd64 amd64 Java 14.0.1
Changes in the entry preview format are accounted for only after restarting.
Note 1: may seem similar to issue #5464, but the present issue is about the content of the preview. Note 2: issue is present with “Show preview as tab in entry editor” checked or unchecked.
Steps to reproduce the behavior:
- Create a file with the following entry and save it
@Article{MyKey,
author = {Author1, Surname1 and Author2 Surname2},
journal = {The Journal title},
title = {The title of the article},
year = {2020},
number = {12},
pages = {1-100},
volume = {15},
}
- Go to Options -> Preferences -> Entry preview
- Select “Preview” in the column “Selected”
- Click on the Edit tab
- Change
\begin{journal} <em>\format[HTMLChars]{\journal}, </em>\end{journal}
into\begin{journal} <em>\format[HTMLChars]{\journal},HereIsMyChange </em>\end{journal}
- Go to the preview Tab. ==> The preview is updated accordingly.
- Click on save
- Edit the entry
The preview shows:
HereIsMyChange
is not displayed ==> The preview is NOT updated. - Close and reopen JabRef
- Edit the entry
The preview shows:
HereIsMyChange
is displayed ==> The preview is updated NOW.
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 30 (28 by maintainers)
Commits related to this issue
- Fix preview settings not saved due to l10n Introduce internal name for finding layout Fixes #6447 — committed to JabRef/jabref by Siedlerchr 4 years ago
- Fix preview settings not saved due to l10n (#7077) * Fix preview settings not saved due to l10n Introduce internal name for finding layout Fixes #6447 * rename getInternalName — committed to JabRef/jabref by Siedlerchr 4 years ago
- Squashed 'buildres/csl/csl-styles/' changes from ca943b70d7..41531558a8 41531558a8 Fix unsigned newspaper articles throughout Chicago 17 (#6486) 7678212826 Create trames.csl (#6479) 0cae26ac85 Update... — committed to JabRef/jabref by deleted user a year ago
Fixed, indeed. Thank you @Siedlerchr!
Thanks for your kindness. In fact, I find that your path is not exactly correct. We should not initialize another object of PreviewPanel which is JavaFX Vbox. I think we should modify some code to let the PreviewPanel content update after saving the preferences, which is a little difficult and deep tasks. The things I’m doing now is to figure out how the preview showing on the EntryEditor, and trying to give an elegant solution to update the preview. If you are still interested in it. Feel free to ask, we can work on this bug together.