This is achieved by adding the function to Atto's toolbar configuration in the Site administration.
See documentation at https://docs.moodle.org/37/en/Text_editor#Adding_extra_buttons
See documentation at https://docs.moodle.org/37/en/Text_editor#Adding_extra_buttons