Added some DOM defs for editing messages.