opendocument-app / OpenDocument.core

C++ library that translates office documents to HTML
GNU General Public License v3.0
24 stars 9 forks source link

restrict editing #284

Closed andiwand closed 2 years ago

andiwand commented 2 years ago

currently the UI suggests that we have more editing capabilities than we actually do have which is confusing and frustrating for the user. we should limit the UI and match the backend in this regards.

editing capability ladder

the HTML must contain the editing capabilities of the underlying document and JS has to verify that the document is not edited in a way that cannot be included after saving the document back to the original format.

a communication channel to the platform should inform the user when he is trying to edit a document in a way that is not supported. the user should be educated why this is the case and what else he is able to do and that this might be improved in the near future.

references

TomTasche commented 2 years ago

Is there a way to "block" or undo unsupported operations, or is the only thing we can do to tell the user that "it's not going to work"?

andiwand commented 2 years ago

@TomTasche I hope for a solution that prevents the user from editing the document in a way we don't support. I will investigate out options there first. if possible I would still show a short message that we canceled the last edit

otherwise we can fall back to a message and then refuse to save the documents with the given edits with a descriptive message