Toolbar action, clipboard and codearea

Hi

I would like to use a toolbar button to let it write some text into the codearea.

I can’t get it to work ( In a text field or form it works without problems ). I get error or nothing at all. If I put something on the clipboard and then use @com([EditPaste]) it works.

Is there a other way to place text into the code area using a toolbar button?

How can I put some text on the clipboard with coding?

How can I read a field from a backend doc or profile form and place this onto the ClipBoard?

Thanks