How to add a class to a core block in both admin editor and frontend?

How to add a class to a core block in both admin editor and frontend?

tech