Add post id as body class in wordpress admin dashboard [duplicate]

Not sure to completely got your question, but if you are looking for a way to have in the editor the same classes you are using in the frontend, put an editor-style.css file in your child theme folder and fill it with the classes you need (i.e.:body). Then in your functions.php, add this line:

add_editor_style('editor-style.css');