NaturalHistoryMuseum / scratchpads2

Scratchpads 2.0
http://scratchpads.org
GNU General Public License v2.0
199 stars 83 forks source link

Malfunction of tables [Related #6461 possibly, similar solution partially at least] #6579

Open Archilegt opened 2 years ago

Archilegt commented 2 years ago

This issue is happening within fields with full writing functionality, e.g., fields where the user can add text in several formats, markup, images, tables, etc. One of such fields is the "Full text" field of bibliographic references. For example: https://myriatrix.myspecies.info/content/letter-ludwig-d%C3%B6derlein-1

I inserted five tables into the "Full text" and applied a thicker border to the tables (3 instead of the default 1). Those values are implemented immediately and visible before saving. After saving, they are not visible from outside. When opening the reference to edit it, the table has the correct thicker margin in the view inside. So, the thickness value is saved but not displayed outside.

When applying a border color or background color to a cell, the changes are implemented immediately and visible before saving. After saving, they are not visible from outside. When opening the reference to edit it, the colors are gone. So, no cell border color or background color values are actually saved.

As the field contains five tables, it is also possible to see the issue described in "Alkcarb - Occurrences - Columns not Aligned" #6343 . However, there are ways to specify widths of tables and cells, so this issue might not necessarily be a total malfunction but in part reflect lack of tutorials on how to format tables consistently.

therobyouknow commented 2 years ago

Thank you @Archilegt

I think this solution may also solve some or all of the issues of styling not being saved for https://myriatrix.myspecies.info/

https://github.com/NaturalHistoryMuseum/scratchpads2/issues/6461#issuecomment-1117485697

I will come back to this later today to determine if the same solution can be applied to solve at least some of the issues you're seeing.