Add function for notifying documents of edits