Skip to content

Efficient saving of editor content in the database #5677

Closed Answered by nperez0111
NiclasDev63 asked this question in Questions & Help
Discussion options

You must be logged in to vote

Hi @NiclasDev63

There are a couple of different solutions for saving back editor content from a Tiptap editor:

  • Depending on your user experience, you can have the user confirm that they want to save the content to your system (like a save button) so that you incur this storage performance only once
  • If you want to use auto-saving, you can do it with a debounced on change handler that will only save it after some amount of time has passed since the latest change

Converting editor content into JSON is not an expensive process, and for the size of documents that users typically write, the size of documents are typically negligible (measured in KBs), so I would not be so concerned about it u…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@NiclasDev63
Comment options

Answer selected by nperez0111
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants