diff --git a/crates/collab_ui/src/channel_view.rs b/crates/collab_ui/src/channel_view.rs index 59099dd486ea334e673f2567555a0378ffc8804d..49753ccd6f53c2fd9d1086d078c1eb901cdd8c34 100644 --- a/crates/collab_ui/src/channel_view.rs +++ b/crates/collab_ui/src/channel_view.rs @@ -305,6 +305,10 @@ impl ChannelView { }); } ChannelBufferEvent::BufferEdited => { + // Emit the edited event on the editor context so that other views can update it's state (e.g. markdown preview) + self.editor.update(cx, |_, cx| { + cx.emit(EditorEvent::Edited); + }); if self.editor.read(cx).is_focused(cx) { self.acknowledge_buffer_version(cx); } else {