diff --git a/crates/editor2/src/element.rs b/crates/editor2/src/element.rs index eaaa2d2a2f5370f4c0bb9b2fcf184f2fb5135e7c..4d9a516f2b175f30ba0d968e82091aee7d76220a 100644 --- a/crates/editor2/src/element.rs +++ b/crates/editor2/src/element.rs @@ -2464,7 +2464,9 @@ impl Element for EditorElement { self.paint_text(text_bounds, &mut layout, editor, cx); if !layout.blocks.is_empty() { - self.paint_blocks(bounds, &mut layout, editor, cx); + cx.with_element_id(Some("editor_blocks"), |cx| { + self.paint_blocks(bounds, &mut layout, editor, cx); + }) } }); });