Just to make sure I understand the proposal:
Do you propose to have this wrapper only in edit mode or in view mode, too?
Just to make sure I understand the proposal:
Do you propose to have this wrapper only in edit mode or in view mode, too?
Only in edit mode.
I’m guessing that you had only block level macros in mind when you wrote this. I don’t see how this would work with inline macros. Regardless of this, I’m not convinced by your proposal. I can see the benefits for editing, but you lose the WYSIWYG aspect. I would rather use a popover / floating (contextual) menu to show the macro name and provide macro actions. You can see such a menu already when the selection is inside a macro that is editable inline. We can extend that menu.