Visual editor fix: class attr was lost during translation to xml