Your comments

Thank you, Christopherm for advice. I actually fixed this by plugins, but having custom codes for buttons are would be cool (Google asks to put some code to call JS action by pressing the button).

Can you just add the special options for buttons at least? And head custom editing.