Zettlr: undo / redo not working with tables

Created on 27 Jan 2020  路  2Comments  路  Source: Zettlr/Zettlr

Description

When I have a table with mulitple columns and lines and I delete a column I cannot undelete the deletion of the column.

Reproducing

  • Create a table with multiple columns and lines.
  • fill the table
  • delete a column
  • try to undo

Expected behaviour

column comes back again

Platform

  • OS and version: Ubuntu 19.10
  • Zettlr Version: 1.5.0

Most helpful comment

thank you for describing the behavior and how to deal with it

All 2 comments

This is due to the fact that, when you are in edit mode of the table, you are actually editing the HTML representation of the table, and not the underlying Markdown. Your modifications are persisted into the Markdown, as soon as you leave the edit mode by clicking outside of the table. Then, undo and redo become possible.

Therefore: If you accidentally delete a column or row, or make any other mistake, simply click outside the table so that your mistakes are persisted onto the editor, which will then enable you to use Ctrl/Cmd+Z to undo the changes and do it again.

Maybe we can implement a super simple undo/redo, but this does not have priority right now, as there are so many issues open which need to be addressed prior!

thank you for describing the behavior and how to deal with it

Was this page helpful?
0 / 5 - 0 ratings