Created
December 15, 2017 03:08
-
-
Save dmcgrath/5371a02ff5aa4487dc8b34fae829357a to your computer and use it in GitHub Desktop.
Write changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
noteElement = document.getElementById("note"); | |
noteDocument = dbClient.collection("notes").doc(noteId); | |
noteElement.oninput = function(){ | |
noteDocument.set({ | |
owner: uuid, | |
text: this.innerHTML | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment