Adding class to AllowedAttribute and div to AllowedTag works for me (openACS 5.1.0). Richtext accepts it and I can convert it to HTMLarea.
However, while in "HTMLarea mode" you cannot insert <div>, unless you define your own button afaik. Version 3 is supposed to have a way to paste HTML.