Closed mohit3500 closed 4 months ago
Hmmm. These "invisible" letters are not the same than the original ones. They have more or less path to handle linked letters. Duplicate the whole letters could works but it's less than optimal. Why not use a property "deleted" for deleted letters but not really delete them?
Sounds good but I suggest to not initialized the delete
property to avoid update of database.js
file.
Plus, please make your PR on dev branch (see https://github.com/llaske/sugarizer/blob/dev/CONTRIBUTING.md).
In the Calligra Activity, when some of the letters get deleted by user, and when we switch to word section then some of the deleted letters are not visible.
When the user delete some letters, the letters get splice from defaultTemplate in the database.js into js folder from Calligra.activity folder, therefore some letters not drawn in the word section.
If we add duplicate template of all the letters in the defaultTemplate file in the database.js while giving visibility false to them so that they do not show into letter section. The duplicate letters are used in case some letters got deleted from letter section.
Before deleting letters
After deleting some letters
. Word image after deleting some letters
The local storage data must be cleaned before using because it contains older defaultTemplate into it.