#879 Handle document modification signals, make editor interface more abstract