Originally Posted by JimmyG
Come on, hitting the toolbar buttons erases the containing div, that doesn't make sense. I don't know what you're talking about with "Pretty Print (save) will flatten what you see."
Hitting the p button replaces div in both places with p...the div disappears, and all that's left is a p with class hdg.
If you wish to WRAP the contents
, use the Clip tool: there is a sample for P and DIV inclided:
Simply highlight the selection, and click/select (the clip item)