Storing TextEditor data in ValueTree in order to preserve text between instantiations

So I’m quite new to Juce and I’m currently trying to create a basic note-taking plugin using the TextEditor class. Unfortunately I can’t figure out how to store inputed text between instantiations of the PluginEditor.

Is there a way to store the text as a parameter in XML or is there something else entirely that I’m missing?

Thanks!