Custom ui, confluence. Get body text input in edit mode

I want for the user to edit the macro body on edit mode.
Then that will be as text for the macro on a specific div.
On the old way it was the $body.
I already put the macroConfig for some variables.
I do not find it a good idea for the user to edit only via the macroConfig (ope the editor fo0r the macro), instead the user must edit directly on the edit mode.